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!
  • Comment on Re: Answer: How do I find directories within directories using : parse_dir(`ls -l`)
  • Download Code

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
    ...but the original poster said they had to use "ls".