in reply to Searching all directories except one
Beware of code like /$dir/ because you might have inadvertent matches, such as with "jazz" instead of "zz".sub findstuff { if (-d && $_ eq 'zz') { $File::Find::prune = 1; return; } # then other stuff as normal }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Searching all directories except one
by Aristotle (Chancellor) on Nov 20, 2002 at 13:42 UTC |