in reply to Re^2: How to conditionally terminate finddepth?
in thread How to conditionally terminate finddepth?

Or you could forgo eval/die and use goto
my $newfile = undef; finddepth( sub { if (-M $_ <= 30){ $newfile=$File::Find::name; goto done_finddepth; } }, $base ); done_finddepth: die "the new file is $newfile";
I once suggested an official breakout function to the perl5-porter, to be used like
my $count = 0; &find( sub { $count++; File::Find::breakout() if $count == 500; }, '/');
but nothing came of it. File::Find's way of doing things can mess with your head.

MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
** The third rule of perl club is a statement of fact: pod is sexy.