in reply to File::Find::prune problems
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: File::Find::prune problems
by spx2 (Deacon) on Mar 28, 2008 at 13:18 UTC |