Why does no-one ever use the flip-flop operator for this?
while (<>) { print if 1 .. 5; }
Blessed Be
The Pixel
In reply to Re: how to print first 5 lines of a file
by pixel
in thread how to print first 5 lines of a file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |