Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Getting last value in array

by screamingeagle (Curate)
on Jul 18, 2002 at 23:00 UTC ( #183082=note: print w/ replies, xml ) Need Help??


in reply to Getting last value in array

here's another way to do it (wouldnt recommend it though :)

print $array[scalar @array - 1];


Comment on Re: Getting last value in array
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2014-08-22 05:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (147 votes), past polls