find does the search for you ( don't need for my $file ) and the current filename is in $_.
If find is within the sub, then yes you can declare your hashes there.
see File::Find for details.In reply to Re^5: Comparing files in directory
by poj
in thread Comparing files in directory
by smturner1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |