in reply to Re^2: Wrong result for "length keys %$hashref"?
in thread Wrong result for "length keys %$hashref"?

If you used scalar, they might not know exactly what it did...

A Perl programmer who doesn't understand scalar context has no business programming alone.

With that said, this is one of the few places where using the explicit scalar operator makes sense.

  • Comment on Re^3: Wrong result for "length keys %$hashref"?