in reply to Controlling depth with File::Find
Note the safer use of >=, which works even if you're already below the target. Defensive programming can save much pain.$File::Find::prune = 1 if $File::Find::name =~ tr/\/// >= $depth;
-- Randal L. Schwartz, Perl hacker
|
|---|