Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    print "It's 10\n" if $notAnInt == 10;
    print "It's 0\n" if $notAnInt == 0;
    print "It's #10\n" if $notAnInt eq '#10';
    
  2. or download this
    Argument "#10" isn't numeric in numeric eq (==) at noname1.pl line 6.
    It's 0
    It's #10