scalar grep defined($_) values %hashI think that should be: ...It could be as you have written it, but I think moritz may have been considering the relative inexperience of the OPer by passing the parameter explicitly rather than implicitly.
Also, the code fragment was
scalar grep defined($_), values %hash
(comma present after the defined($_) built-in call) in moritz's original reply (unless moritz has been updating replies without noting the fact – unlikely!).
In reply to Re^3: hash count
by AnomalousMonk
in thread hash count
by vinoth.ree
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |