in reply to Re: how to print first 5 lines of a filein thread how to print first 5 lines of a file
while(<>) { 1 .. 5 ? print : last; } [download]
-Blake