![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Finding un-paired files in a directoryby Jenda (Abbot) |
on Dec 02, 2003 at 15:21 UTC ( #311641=note: print w/replies, xml ) | Need Help?? |
A bit longer than most but if the readdir gives you the filenames in order (my does), there is a lot of such files and only a minimum unpaired I believe it would be the quickest and least memory hungry. Update: Of course if your filesystem is case insensitive you should lowercase the filename to make sure you look for the pairs case insensitively. You may want store the original case in the %single hash in such case. Jenda Edit by castaway: Closed small tag in signature
In Section
Seekers of Perl Wisdom
|
|