Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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 surveying the Monastery: (3)
As of 2024-07-19 11:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.