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.
In reply to Re^2: Looping through end of file once a match is found
by thundergnat
in thread Looping through end of file once a match is found
by MBolton
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |