Perl hash size - How to get the size of a hash in Perl
Perl hash size FAQ: How do I get the size of a hash in Perl?
Short answer: To get the size of a Perl hash (the Perl hash size), use the Perl "keys" function, and assign it to a scalar value, like this: