in reply to Re: Count non-empty hash values
in thread Count non-empty hash values
which is a little clearer IMHO, and probably a tiny bit faster as well :-)my $non_empty = grep { $_ ne "" } values %a;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Count non-empty hash values
by fishbot_v2 (Chaplain) on Oct 22, 2005 at 17:58 UTC | |
by ikegami (Patriarch) on Oct 22, 2005 at 21:23 UTC | |
by Joost (Canon) on Oct 23, 2005 at 00:36 UTC | |
by ikegami (Patriarch) on Oct 23, 2005 at 03:05 UTC | |
by saskaqueer (Friar) on Oct 22, 2005 at 18:33 UTC | |
|
Re^3: Count non-empty hash values
by pboin (Deacon) on Oct 22, 2005 at 19:11 UTC | |
by Joost (Canon) on Oct 23, 2005 at 00:46 UTC |