@DIRLIST = qw(.) unless @DIRLIST; #I always have my scripts in the 'root' directory to be scanned, which works with this line.
use File::Find;
sub process_file {
print "$File::Find::name\n"; # or whatever;
}
find(\&process_file, @DIRLIST);
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.