I need to scan all directories and their subdirectories so that I can build up an array of directory names.
I've used File::Find to get an array of directory names for my root directory.
sub test { use File::Find; &find(\&wanted, 'E:/Common/Intranet/'); } sub wanted { if($File::Find::name !~ m/\./) { $dirlist[$count] = $File::Find::name; } $count++; }
I don't know how to get it to work recursively though.
Any help greatly appreciated.
In reply to recursively scanning directories by Sadmachine
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |