in reply to What should be returned in scalar context?

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...

Replies are listed 'Best First'.
Re: Re: What should be returned in scalar context?
by Juerd (Abbot) on Dec 02, 2003 at 09:47 UTC

    null context

    It's called void context, not null context.

    Juerd # { site => 'juerd.nl', plp_site => 'plp.juerd.nl', do_not_use => 'spamtrap' }