Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Returning sub directories

by kennethk (Abbot)
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://806246]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2017-07-22 19:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (340 votes). Check out past polls.