Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Returning sub directories

by kennethk (Monsignor)
on Nov 10, 2009 at 15:44 UTC ( #806246=note: print w/ replies, xml ) Need Help??


in reply to Returning sub directories

What have you tried that didn't work? (a), (b), and (c) can be quite simply accomplished in one line using readdir, -d and grep. This can then be fed into a foreach loop.

If you don't want to code that much and don't actually care about what your subdirectories are, you can do something similar with File::Find.


Comment on Re: Returning sub directories

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://806246]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (12)
As of 2014-11-26 11:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (168 votes), past polls