Look up File::Find. It is a great way to recurse down a list of directories. Typically you put the code to run on the found files in a sub and pass it a ref to this sub.
use File::Find; find(\&wanted, @directories_to_search); sub wanted { ... }
Cheers,
R.
In reply to Re: Read Perl files inside a directory and its subfolders
by Random_Walk
in thread Read Perl files inside a directory and its subfolders
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |