Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by toolic (Bishop)
on Aug 15, 2009 at 18:14 UTC ( #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?
[shmem]: I'm a bit scared by agile (agile imposition) - but then it is crucial how it is lived to crucified or not
[shmem]: s/to cru/to be cru/
[moritz]: agile itself is pretty straight forward: faster feedback loops, working in smaller increments, regularly reflect and try to improve your process
[moritz]: it's just some implementations of agile that are scary
[shmem]: moritz: that sound somewhat reconciling to me
[shmem]: indeed these 3 points are the ones I'm missing most in my daily work

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2017-04-27 14:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (508 votes). Check out past polls.