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

Re: Finding directories at a variable depth

by RichardK (Parson)
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 ...

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2016-12-11 08:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (169 votes). Check out past polls.