in reply to Re^2: Size of the hash value
in thread Size of the hash value

Indeed so. If harishnv requires nullipotence then another similar approach could be employed. Such as

say $#$_ + 1 for values %hash;

Replies are listed 'Best First'.
Re^4: Size of the hash value (nullipotent)
by ikegami (Patriarch) on Feb 22, 2018 at 18:06 UTC

    Why use $#a at all if you want the number of elements?

    say 0+@$_ for values %hash;