![]() |
|
Problems? Is your data what you think it is? | |
PerlMonks |
Re^2: Comparing duplicate pictures in different directoriesby elwarren (Priest) |
on Jun 21, 2005 at 18:06 UTC ( #468774=note: print w/replies, xml ) | Need Help?? |
If you compute the hash you can save it and run it again later when more files are added. If you go the diff or eq route, you have to read the entire file for each compare.
He doesn't seem to take advantage of hash-caching here, but it would also speed up subsequent compares of the file against the next potential duplicate.
In Section
Cool Uses for Perl
|
|