- or download this
find({
wanted => \&foo,
preprocess => sub { grep !/^d/i, @_ },
}, '/somedir');
- or download this
use File::Find::Rule;
...
exec => sub { $seen = 0 if /^d/i; $seen },
in => '/somedir'
);
- or download this
my @files;
my $rule = rule(file => start => '/somedir');
...
last if $file =~ /^d/i;
push @files => $file;
}