my $num_keys = keys %$prop_ref;
If you instead want to determine string lengths of keys or values, you can use length.
In reply to Re: How to find length of $hash_ref
by kennethk
in thread How to find length of $hash_ref
by priyankgandhi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |