Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Re: Print all lines in a file except the last two

by hardburn (Abbot)
on May 20, 2004 at 16:41 UTC ( #355005=note: print w/replies, xml ) Need Help??


in reply to Re: Print all lines in a file except the last two
in thread Print all lines in a file except the last two

You can remove the pops and change the print to print@f[0..$#f-2] for a savings of 13 strokes.

----
send money to your kernel via the boot loader.. This and more wisdom available from Markov Hardburn.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://355005]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2017-07-22 23:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (342 votes). Check out past polls.