in reply to Re: How to conditionally terminate finddepth?
in thread How to conditionally terminate finddepth?
my $newfile = undef; eval { finddepth( sub {if (-M $_ <= 30) {$newfile=$File::Find::name; die "";}}, $base); }; die "$@" if ($@ and !defined($newfile)); if (defined($newfile)) {print "$base has something new in it\n";} else {print "$base is just old stuff\n";}
@/=map{[/./g]}qw/.h_nJ Xapou cets krht ele_ r_ra/; map{y/X_/\n /;print}map{pop@$_}@/for@/
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to conditionally terminate finddepth?
by PodMaster (Abbot) on Sep 13, 2005 at 20:20 UTC |