which is a little clearer IMHO, and probably a tiny bit faster as well :-)my $non_empty = grep { $_ ne "" } values %a;
In reply to Re^2: Count non-empty hash values
by Joost
in thread Count non-empty hash values
by pboin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |