I'm a bit unclear exactly what you're asking, but if you want to do something for files and something different for directories:
sub wanted { if (-d){ print "directory\n"; } if (-f){ print "file\n"; } }
In reply to Re^4: File::Find preprocess
by stevieb
in thread File::Find preprocess
by pvaldes
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |