Don't ask to ask, just ask | |
PerlMonks |
File::Monitor problem with batch filesby xbmy (Friar) |
on Nov 17, 2010 at 19:31 UTC ( [id://872039]=perlquestion: print w/replies, xml ) | Need Help?? |
xbmy has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks;
The following code works well for single file, what i want it to do is monitor the mtime of a file, if it has been modified, copy it to a new directory immediately as an automatic backup procedure.
But i have many files for which to be monitored, i want to give it a file list or array like the following codes:
What the codes output is just monitor the first file in the file array or list, when i did some modifies to the other file in the list there was no monitor response. But i want they were monitored simultaneously. Can you give me some advices! Any help will be appreciated!
Back to
Seekers of Perl Wisdom
|
|