Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

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

( #788917=categorized answer: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use File::Slurp;
    
    my @dirs = grep { -d "$dir/$_" } read_dir($dir);
    
  2. or download this
    my @dirs = grep { -d "$dir/$_" } read_dir($dir, keep_dot_dot=>1);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (20)
As of 2014-09-02 14:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (25 votes), past polls