Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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 ( #242455=note: print w/ replies, xml ) Need Help??


in reply to Answer: How do I find directories within directories using : parse_dir(`ls -l`)
in thread directories

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
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".

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://242455]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (10)
As of 2015-01-30 16:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My top resolution in 2015 is:

















    Results (252 votes), past polls