Help for this page

Select Code to Download


  1. or download this
    sub equalOrBothNull
    {
    ...
       ((defined($a) && defined($b) && $a==$b) ||
        (!defined($a) && !defined($b));
    }
    
  2. or download this
    not defined($a) && not defined($b)
    
  3. or download this
    $ perl -MO=Deparse -e'not defined($a) && not defined($b)'
    not defined $a && !defined($b);
    -e syntax OK