Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Re: Print all lines in a file except the last twoby hardburn (Abbot) |
on May 20, 2004 at 16:41 UTC ( [id://355005]=note: print w/replies, xml ) | Need Help?? |
You can remove the pops and change the print to print@f[0..$#f-2] for a savings of 13 strokes. ----
In Section
Seekers of Perl Wisdom
|
|