Help for this page

Select Code to Download


  1. or download this
    print "$in wasn't a number!";input() unless $in =~ /\d/;
    # is the same as
    ...
    input() unless $in =~ /\d/;
    # what you want is
    print("$in wasn't a number!"),input() unless $in =~ /\d/;
    
  2. or download this
    print("$in wasn't a number!"),return input() unless $in =~ /\d/;