Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Answer: How do I get the last element of an array?

by extremely (Priest)
on Dec 03, 2000 at 11:49 UTC ( #44646=categorized answer: print w/replies, xml ) Need Help??

Q&A > arrays > How do I get the last element of an array? - Answer contributed by extremely

$array[$#array]

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (1)
As of 2020-10-26 06:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (250 votes). Check out past polls.

    Notices?