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?
[ambrus]: Discipulus: ah, software licensing.

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (14)
As of 2017-03-29 12:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (351 votes). Check out past polls.