Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2016-09-30 20:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (572 votes). Check out past polls.