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