in reply to How do I find directories within directories using : parse_dir(`ls -l`)
You could hand-roll it as follows.
Use ls to get a list of directories...
...and then test each entry to see whether it is a directory:chomp (my @dir = `ls $path`);
my @list_of_directories = grep { -d "$path/$this_entry" } @dir;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Answer: How do I find directories within directories using : parse_dir(`ls -l`)
by jasonk (Parson) on Mar 12, 2003 at 18:18 UTC | |
by Codmate (Novice) on Mar 13, 2003 at 15:34 UTC |
In Section
Seekers of Perl Wisdom