in reply to Hard to find bug in my File::Find code

There's something spishy in your preprocess sub:

my $depth_count = $File::Find::dir =~ tr[/][]; return @_ if $depth < $depth;

When is $depth < $depth ?

Replies are listed 'Best First'.
Re^2: Hard to find bug in my File::Find code
by Zenshai (Sexton) on Aug 29, 2008 at 19:43 UTC
    Good catch, I got a lot of this code from an example in a Tutorial here (Beginner's Guide to File::Find), and the case there had both a maxdepth and a mindepth, which I have gotten rid of, I must have missed this line when checking the results of my search and replace.