Check Re^8: Unhappy returns (just updated) for some tests as to what gets returned when. Apparently:
In other words, what perlsub says is deceptive and incomplete.
Update: oh goodness, it gets weirder still:
It’s probably safe to say that Perl simply has no rule here, and that what you get back from a sub depends on implementation details of perl.
Makeshifts last the longest.
In reply to Re: "last expression" quiz
by Aristotle
in thread "last expression" quiz
by fxn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |