Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    
    print "it's 0\n" if $undef           == 0;
    print "it's 0\n" if $non_numeric_str == 0;
    
  2. or download this
    Use of uninitialized value in numeric eq (==) at script.pl line 7.
    it's 0
    Argument "abc" isn't numeric in numeric eq (==) at script.pl line 8.
    it's 0