Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: Finding directories at a variable depth

by Ratazong (Monsignor)
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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://984772]
LanX what?
marto deletes himself from the all lists
QM deletes himself from all delete lists
LanX passes the blame to jdpatches. ..
Eily the verb from this sentence
[LanX]: jdporter adjusted the best nodes algorithm not long ago to public demands, my theory more complicated= more error prone

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2018-03-20 10:16 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (249 votes). Check out past polls.