while (<>) { $buf[$. % $size] = $_; } [download]
In reply to Re^2: how to read multiple line from a file by educated_foo in thread how to read multiple line from a file by skyworld_chen