On Thu, 2 Aug 2001, Michael G Schwern wrote:
> 
>     use constant NOTHING => undef;
> 
>     sub foo {
 [snip]
>         return NOTHING;
>     }

Shouldn't that rather be

  use constant NOTHING => ();

so it will return the empty list in list context?  Or one could just
simply write

  return;

instead.

-- 
Ilmari Karonen - http://www.sci.fi/~iltzu/
"It's possible to write a Perl program that simulates a universal Turing
 machine, so, yes, your point is both valid and correct."
                                   --  Greg Bacon in comp.lang.perl.misc

Reply via email to