in reply to Re: Wrong result for "length keys %$hashref"?
in thread Wrong result for "length keys %$hashref"?
That's only more self-documenting if you already understand list vs. scalar context. If a junior programmer saw that they would say WTF and have no idea where to look next. If you used scalar, they might not know exactly what it did but they'd have a direct pointer to documentation that would explain exactly what the intent of the code was.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Wrong result for "length keys %$hashref"?
by chromatic (Archbishop) on Mar 14, 2011 at 22:02 UTC | |
Re^3: Wrong result for "length keys %$hashref"?
by ikegami (Patriarch) on Mar 14, 2011 at 22:53 UTC |
In Section
Seekers of Perl Wisdom