Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: recursive path function falls into infinite loopby tachyon (Chancellor) |
on Nov 25, 2004 at 07:05 UTC ( [id://410341]=note: print w/replies, xml ) | Need Help?? |
First the obligarory use File::Find. Anyway here is how to do it without using recursion - it is presented as an example rather than a recommendation. Search is width first rather than depth first. It is vaguely interesting in that we add new dirs to the array we are currently looping over. This comes in handy for other things as well.
cheers tachyon
In Section
Seekers of Perl Wisdom
|
|