Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: How do I find the index of the last element in an array?

by vroom (His Eminence)
on Nov 15, 2000 at 23:38 UTC ( #41841=note: print w/replies, xml ) Need Help??


in reply to How do I find the index of the last element in an array?

You can find it in the special variable $#arrayname

Originally posted as a Categorized Answer.

  • Comment on Re: How do I find the index of the last element in an array?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2023-01-28 11:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?