Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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.


Comment on Re: Re: Print all lines in a file except the last two
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://355005]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (13)
As of 2015-07-07 22:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls