Help for this page

Select Code to Download


  1. or download this
    $ perl -Mwarnings -le 'my $x; print 1 if $x == undef'
    Use of uninitialized value in numeric eq (==) at -e line 1.
    Use of uninitialized value $x in numeric eq (==) at -e line 1.
    1
    
  2. or download this
    $ perl -Mwarnings -le 'my $x; print 1 if defined $x'
    
  3. or download this
    $ perl -Mwarnings -le 'my $x; print 1 if ! defined $x'
    1