in reply to "last expression" quiz
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: "last expression" quiz
by Anonymous Monk on Oct 19, 2005 at 23:38 UTC | |
by Aristotle (Chancellor) on Oct 20, 2005 at 02:34 UTC | |
by Anonymous Monk on Oct 20, 2005 at 14:24 UTC | |
by sauoq (Abbot) on Oct 20, 2005 at 04:44 UTC | |
by Anonymous Monk on Oct 20, 2005 at 14:33 UTC | |
by sauoq (Abbot) on Oct 20, 2005 at 16:07 UTC | |
by Anonymous Monk on Oct 20, 2005 at 17:15 UTC | |
|
Re^2: "last expression" quiz
by robin (Chaplain) on Oct 21, 2005 at 10:51 UTC | |
by Aristotle (Chancellor) on Oct 23, 2005 at 14:43 UTC | |
by robin (Chaplain) on Oct 23, 2005 at 15:14 UTC | |
by Aristotle (Chancellor) on Oct 27, 2005 at 05:37 UTC |