Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
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 ( [id://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?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2024-04-23 09:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found