Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Finding directories at a variable depth

by Ratazong (Prior)
on Aug 01, 2012 at 11:36 UTC ( #984772=note: print w/ replies, xml ) Need Help??


in reply to Finding directories at a variable depth

You could have a look at $File::Find::dir, which gives the directory where $_ is found; there you can get the depth by counting the number of parts after doing a split using the seperator (/).

HTH, Rata


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://984772]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (10)
As of 2015-07-03 08:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (49 votes), past polls