in reply to Showing 10 lines at the time

Your question isn't so clear, do you want to show 10 matches, do something and than show the next 10. If that's what you need than you can try:
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); }
UPDATE: thinker's suggestion is better, I didn't understood you question, sorry.

Hotshot

Replies are listed 'Best First'.
Re: Re: Showing 10 lines at the time
by Anonymous Monk on Aug 26, 2002 at 08:41 UTC
    Yes, the idea is like that, but I'd like to do it with a browser. Printing out 10 matches plus a link with text "next 10 >>".
    PH