are you monitoring all the files in the directory tree or are you interested in tracking only a limited number of them? I am asking because if you're monitoring only a smaller number of files (and not each and every file in the directory tree), then it might possibly be better (faster) not to comb through the whole directory with File::Find, but rather to start from the list of files in your hash and check only these files' age with the relevant file test operator.
In reply to Re: Monitor new file
by Laurent_R
in thread Monitor new file
by colox
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |