in reply to Re^2: hash count
in thread hash count

    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!).

Replies are listed 'Best First'.
Re^4: hash count
by moritz (Cardinal) on Mar 25, 2009 at 15:24 UTC
    (unless moritz has been updating replies without noting the fact – unlikely!).

    I did, mea culpa.

    (I sometimes do that when the node is still very new and there are no replies and it's a small change. But if it causes confusion, I try to clarify it).