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.
In reply to Re^3: Wrong result for "length keys %$hashref"?
by chromatic
in thread Wrong result for "length keys %$hashref"?
by samwyse
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |