Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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 examining the Monastery: (6)
As of 2014-10-22 05:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (113 votes), past polls