http://qs321.pair.com?node_id=930829


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)