in reply to Re: Looping through end of file once a match is found
in thread Looping through end of file once a match is found

while ($currentfile = <FILE>) { if ($currentfile =~ /^\d{6}/ and $search_date eq substr($currentfi +le,52,10) { print RESULTS $currentfile; print RESULTS while <FILE>; } }

Oops. This was supposed to be a reply to the OP, not Transient.