while (<DATA>) { print if ($. - 1) % 10 < 5; } [download]
In reply to Re^5: Hmmm: while(), file handle and $_ gotcha by ikegami in thread Hmmm: while(), file handle and $_ gotcha by roboticus