in reply to Re: "last expression" quiz
in thread "last expression" quiz
You see, you are wondering about some stuff and learn a lot by side effect. Thank you very much for your answers.
With regard to the very "last expression", I guess we could conclude perlsub is not accurate there. It is true that some value is always returned, but in the subroutine
there are only TWO expressions, namely "1", and "@_". The "last expression" by definition should be one of them, but the return value is none of them.sub foo { 1 for @_ }
Does anybody disagree with that conclusion?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: "last expression" quiz
by sauoq (Abbot) on Oct 20, 2005 at 09:38 UTC | |
by halley (Prior) on Oct 20, 2005 at 14:08 UTC |