Put your files into a hash. then you can throw away that last foreach loop and instead simply have this
if (exists $filelist{$f_name}) { print "$c - Found and to be deleted: $files\n"; }
Hash key in %filelist would be the filename, hash value is unimportant, you may use 1 or even further information about the file in there
In reply to Re: Searching for files efficiently help!
by jethro
in thread Searching for files efficiently help!
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |