Perl: the Markov chain saw | |
PerlMonks |
Re: What should be returned in scalar context?by simonm (Vicar) |
on Dec 02, 2003 at 08:15 UTC ( [id://311553]=note: print w/replies, xml ) | Need Help?? |
An interesting side-note: I've recently played around a bit with testing for null context (undefined wantarray), and using it to skip calculation of a return value. It's not a widely-used idiom, but I like it...
In Section
Meditations
|
|