Next Tricks of the Wizards 129

?:?:?:

          *{$p . '::' . $n} = (ref $v ? $v : \$v);
        sub sign {
          my $x = shift;
          if ($x < 0) { return -1 }
          elsif ($x == 0) { return 0 }
          else { return +1 }
        }
        sub sign {
             $_[0] <  0 ? -1 :
             $_[0] == 0 ?  0 :
                           1 ;
        }



Next Copyright © 2003 M. J. Dominus