in reply to Re^4: Count non-empty hash values
in thread Count non-empty hash values
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Count non-empty hash values
by ikegami (Patriarch) on Oct 23, 2005 at 03:05 UTC |