On Tue, Sep 19, 2000 at 10:11:23PM -0700, Nathan Wiger wrote:
>    undef                     null
>    ------------------------  ------------------------
>    $a = undef;               $a = null;
>    $b = 1;                   $b = 1;
>    $c = $a + b;              $c = $a + $b;
> 
>    $c is 1                   $c is null

If you want different semantics for undef then use a pragma, that is
what pragmas are for.

  use tristate;

  $a = undef;
  $b = 1;
  $c = $a + b;

  $c is undef

I did mention this to Larry and his answer was, "you can do anything you
like with pragmas"

However I would suggest that many, including myself, would not like
to see perls values have yet another state of null

Graham.

Reply via email to