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 size of an array?

by ysth (Canon)
on Nov 04, 2003 at 06:42 UTC ( [id://304345]=note: print w/replies, xml ) Need Help??


in reply to How do I find the size of an array?

You can also get the last index of an array_ref:   my $index = $#{$array_ref}

Originally posted as a Categorized Answer.

  • Comment on Re: How do I find the size of an array?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2025-06-14 21:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.