in reply to Re: Reading multiple lines?
in thread Reading multiple lines?

Unless I'm missing something this code would only get the first block of 10 lines then would stop. Maybe this would be better:
local $.; while (<IN>) { push @lines , scalar <IN>; next if (($.%10 == 0) and (!eof(IN))); # process @lines @lines = (); # clear }