Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Answer: Size of a hash

by japhy (Canon)
on Mar 08, 2001 at 22:09 UTC ( #63039=categorized answer: print w/replies, xml ) Need Help??

Q&A > hashes > How can I find the number of elements in a hash? - Answer contributed by japhy

You did that wrong, by the way. You wanted $size = @array, not $#array. And you want to call keys() in scalar context, like it's documented.

Replies are listed 'Best First'.
Re: Answer: Size of a hash
by Malkavian (Friar) on Mar 08, 2001 at 22:12 UTC
    My stupid mistake. RTFM strikes again. Thanks.
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2016-12-03 11:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (55 votes). Check out past polls.