Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Printing the last few elements of an array.

by rob_au (Abbot)
on Dec 16, 2002 at 11:33 UTC ( [id://220172]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my ( $third_last, $second_last, $last ) = @record[ -3, -2, -1 ];
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2024-04-25 11:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found