Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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

by hardburn (Abbot)
on May 20, 2004 at 16:41 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://355005]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (9)
As of 2024-04-18 08:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found