- or download this
find({wanted => \&wanted,},'/tmp');
sub wanted {
print "$File::Find::name\n";
}
- or download this
find({wanted => \&wanted,
preprocess => \&preprocess,
...
sub postprocess {
print "post\n";
}
- or download this
sub preprocess {
my @dir = @_;
print "pre\n";
return @dir;
}
- or download this
/tmp
pre
/tmp/1
post