Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Finding directories at a variable depth

by RichardK (Priest)
on Aug 01, 2012 at 11:56 UTC ( #984777=note: print w/ replies, xml ) Need Help??


in reply to Finding directories at a variable depth

You could just use glob, if you construct the right match string

my @files = glob('/*/*/*');

That will give you all the files like

/a/b/c /a/b/d /a/x/a ...


Comment on Re: Finding directories at a variable depth
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2014-08-29 03:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (275 votes), past polls