in reply to Showing 10 lines at the time
UPDATE: thinker's suggestion is better, I didn't understood you question, sorry.my $j = 0; while (1) { for (my $i = 0; $i < 10 && $j < @found; $i++) { $j++; print $found[$j], "\n"; } # do something last if ($j == @found); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Showing 10 lines at the time
by Anonymous Monk on Aug 26, 2002 at 08:41 UTC |