Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: recurse directory scriptby mkmcconn (Chaplain) |
on Jan 09, 2002 at 05:45 UTC ( [id://137341]=note: print w/replies, xml ) | Need Help?? |
CHRYSt, you'll find many posts here directing you to File::Find. It's very easy to use (although there are some peculiarities that may put you off at first, much clearer code can be produced with it than you'll find in my sample below) Download the snippet below, and see if it does pretty much what you want. I can hardly imagine it taking 3 hours, even on a very large and deep directory. If it works for you, take a closer look at the module and the examples in the documentation (perldoc File::Find).
mkmcconn fiddled with text after posting.
In Section
Seekers of Perl Wisdom
|
|