If you're starting out with File::Find, then the best advice I can give you is... don't. It is old and bletcherous and there's no need to use it for new work.
Much nicer is File::Find::Rule, which will cut off the depth search in a much more declarative manner, letting you get on with your job and not having to write so much make-work code to tweak File::Find to do your bidding.
my @files = File::Find::Rule->new ->maxdepth(2) ->file() ->in('/path/to/stuff');
• another intruder with the mooring in the heart of the Perl
In reply to Re: File::Find::prune problems
by grinder
in thread File::Find::prune problems
by spx2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |