in reply to Prune File Find search
Or (you knew it was coming folks) with File::Find::Rulefind({ preprocess => sub { return grep { not(-d and /dir(?:One|Two|Three)/) } @_ }, wanted => \&processSub, }, $startDir);
See. File::Find::Rule docs for more info.use File::Find::Rule; my $iter = rule( not => rule( directory => name => qr/dir(?:One|Two|Three)/, prune => ), start => '/your/path/here' ); while(my $thing = $iter->match) { ... }
_________
broquaint
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Prune File Find search
by Anonymous Monk on Jul 28, 2003 at 15:38 UTC | |
by broquaint (Abbot) on Jul 28, 2003 at 15:52 UTC | |
by Anonymous Monk on Jul 28, 2003 at 16:33 UTC |