The stupid question is the question not asked | |
PerlMonks |
Re: aborting File::Find::findby petdance (Parson) |
on Nov 19, 2006 at 01:36 UTC ( [id://584909]=note: print w/replies, xml ) | Need Help?? |
Use File::Next instead. It's an iterator, so you control how and when the iterators is called.
You can blow out of that loop whenever you want, with either a last; or a $done = 1;. The key is that it's YOU controlling the iteration, not File::Find and not some funky control package variables like $File::Find::prune.
xoxo,
In Section
Seekers of Perl Wisdom
|
|