ooh nice :-)is even faster.grep length, values %a
I thought of this one:
Which might be even faster (I haven't tested it), but whether it's valid depends on the OP's meaning of "empty"..grep $_, values %a
In reply to Re^5: Count non-empty hash values
by Joost
in thread Count non-empty hash values
by pboin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |