Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Returning sub directories

by Win (Acolyte)
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 making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2026-03-07 00:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.