Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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: (10)
As of 2014-12-26 11:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (171 votes), past polls