Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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

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

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 exploiting the Monastery: (13)
As of 2016-06-24 20:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (322 votes). Check out past polls.