go ahead... be a heretic | |
PerlMonks |
Re: Some File::Find woes.by bluto (Curate) |
on Jan 12, 2004 at 23:50 UTC ( [id://320817]=note: print w/replies, xml ) | Need Help?? |
In addition to tye's suggestions, you'll may also want to make sure you are actually removing a file by checking the type (i.e. with the '-f' operator) unless you know for sure you won't have directories ending in '.pdf'.
FWIW, I bet 2M files takes a while to search through. During this time I'm assuming the tree can change quite a bit. You may see interesting errors as File::Find tries to cope with moved/renamed subtrees/files. Perhaps W2K has some built in and/or scriptable method of locating files more quickly than searching the entire namespace one entry at a time? bluto
In Section
Seekers of Perl Wisdom
|
|