Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Returning sub directories

by Win (Novice)
on Nov 10, 2009 at 15:39 UTC ( [id://806242]=perlquestion: print w/replies, xml ) Need Help??

Win has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: Returning sub directories
by marto (Cardinal) on Nov 10, 2009 at 15:49 UTC
    A reply falls below the community's threshold of quality. You may see it by logging in.
Re: Returning sub directories
by kennethk (Abbot) on Nov 10, 2009 at 15:44 UTC
    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.

Re: Returning sub directories
by keszler (Priest) on Nov 10, 2009 at 15:44 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://806242]
Approved by BioLion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (4)
As of 2025-07-11 15:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.