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
In reply to RE: Controlling depth with File::Find
by merlyn
in thread Controlling depth with File::Find
by arturo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |