Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by Codmate (Novice)
on Mar 12, 2003 at 18:09 UTC ( #242450=categorized answer: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    chomp (my @dir = `ls $path`);
    
  2. or download this
    my @list_of_directories = grep { -d "$path/$this_entry" } @dir;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
erix denies everything
[shmem]: erix: bad idea. PerlMonks is based on everything
[robby_dobby]: shmem:everything2
robby_dobby says Sorry and points to his boredom
[shmem]: robby_dobby: since everything is everything, it is thus also everything2. And everything2 is based on... you name it.
[Corion]: Mhhmmm. I just had to remind two contractos of their priorities from my point of view. This felt somewhat like getting my godson+siblings to clean their room, including the evil eye I threw them ;)

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (10)
As of 2017-04-25 13:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (454 votes). Check out past polls.