I usually use "scalar keys %hash" to find how many pairs are in a %hash.
scalar grep defined($_) values %hash
I think that should be:
scalar grep defined, values %hash;
or
scalar grep { defined } values %hash;
In reply to Re^2: hash count
by kyle
in thread hash count
by vinoth.ree
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |