Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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];

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 questions are moot...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (2)
As of 2017-07-25 02:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (363 votes). Check out past polls.