in reply to Re: Searching in an array of arrays
in thread Searching in an array of arrays

hm, at first sight i would say that $last_range, $first_day should be initialised outside the for-loop. look at and execute this:
for ( 1 .. 10 ) { my $i; $i++; print $i; } print "\n"; my $i; for ( 1 .. 10 ) { $i++; print $i; } print "\n";