Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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 cooling their heels in the Monastery: (5)
As of 2015-07-01 23:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (25 votes), past polls