|
|
| There's more than one way to do things | |
| PerlMonks |
Re: Returning sub directoriesby kennethk (Abbot) |
| on Nov 10, 2009 at 15:44 UTC ( [id://806246]=note: print w/replies, xml ) | Need Help?? |
|
What have you tried that didn't work? (a), (b), and (c) can be quite simply accomplished in one line using readdir, -d and grep. This can then be fed into a foreach loop. If you don't want to code that much and don't actually care about what your subdirectories are, you can do something similar with File::Find.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||