in reply to Re^3: File::Find preprocess
in thread File::Find preprocess
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"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: File::Find preprocess
by pvaldes (Chaplain) on Jan 08, 2018 at 17:26 UTC |