Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: number of keys and values in a hash

by pvaldes (Chaplain)
on Oct 11, 2011 at 14:28 UTC ( [id://930829]=note: print w/replies, xml ) Need Help??


in reply to number of keys and values in a hash

Several ways to do the same, i.e.

my $number = keys %myhash;   print $number;

Updated (to avoid duplication in the other post)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2024-04-26 04:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found