Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: How do you determine the size of array reference?

by Fletch (Chancellor)
on Jul 02, 2007 at 15:39 UTC ( #624491=note: print w/replies, xml ) Need Help??


in reply to How do you determine the size of array reference?

scalar @{ $arrayref }

Pretty much wherever you use @array you can substitute in @{$arrayref} (and the related invocation for the last index of the array ref is $#{ $arrayref }, but you really shouldn't be using that to determine the size).

Replies are listed 'Best First'.
Re^2: How do you determine the size of array reference?
by apl (Monsignor) on Jul 02, 2007 at 17:11 UTC
    Thanks, Fletch. That echo you hear is me slapping my forehead...

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2019-12-13 02:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?