|
|
| Just another Perl shrine | |
| PerlMonks |
Re: Finding directories at a variable depthby Ratazong (Prior) |
| on Aug 01, 2012 at 11:36 UTC ( #984772=note: print w/ replies, xml ) | Need Help?? |
|
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
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||