Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

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?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2016-02-06 16:43 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (233 votes), past polls