Well, the Perl 5 implementation of => has that problem. I recall discussions of enforcing scalar context when => was still fairly new, but it was already too late. Then Perl 6 made it so.
And the problems with return; from a sub that otherwise returns a single scalar go way beyond just uses of =>, of course.
- tye
In reply to Re^4: A question about method return values and error checking (=>)
by tye
in thread A question about method return values and error checking
by wee
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |