in reply to Re: How do I find directories within directories using : parse_dir(`ls -l`)
in thread How do I find directories within directories using : parse_dir(`ls -l`)
This is far from the "best" way. A much shorter (and less resource intensive, and more portable) method is:
my @list_of_direcories = grep(-d, <$path/*>);
We're not surrounded, we're in a target-rich environment! |
---|
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Answer: How do I find directories within directories using : parse_dir(`ls -l`)
by Codmate (Novice) on Mar 13, 2003 at 15:34 UTC |
In Section
Seekers of Perl Wisdom