in reply to reading lines from a text file
my $threshold = 0; while($line=<FH>) { if($line=~ /$SearchString/) { $threshold++; } last if ( $threshold eq 2 ); # continue processing }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: reading lines from a text file
by tilly (Archbishop) on Dec 27, 2008 at 15:13 UTC | |
by matrixmadhan (Beadle) on Dec 27, 2008 at 16:33 UTC | |
|
Re^2: reading lines from a text file
by misba (Initiate) on Dec 27, 2008 at 11:37 UTC | |
by tilly (Archbishop) on Dec 27, 2008 at 15:20 UTC |