Just
my $count = values %hash;
would do it. Both keys and values return the respective counts when called in a scalar context.
In reply to Re: Count of HoA elements
by BrowserUk
in thread Count of HoA elements
by sweetblood
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |