On Jun 13, 2013, at 1:30 PM, lee wrote: > In my application, my estimate is that there will be a set of around > 100--150 files. Once a file is closed and reported one last time, it > doesn't need to be considered anymore, so the number of relevant files > is limited. Each file is only about 2kB in size. Reports will be > generated only monthly. > > Considering this, it seems doubtful that the additional effort in > programming and procedure required to handle exceptions in which not > /both/ mtime and size have changed compared to simply go by hash only is > worthwhile the benefit in performance: The effective difference in this > case is probably like the difference between "(almost) instantly" and > "about 3 seconds".
If you have only 150 files, each 2kB in size, you can just make a copy of each file in another folder. Then, use the File::Compare module to compare the copy with the updated files in the original folder. No persistent data needed, no hashing, no looking at dates or sizes, guaranteed to find differences. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/