Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-04-24 21:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found