Help for this page

Select Code to Download


  1. or download this
    print "$in was not a number!"; input() unless $in =~ /\d/;
    
  2. or download this
    sub input {
        my $arrayref=shift;
    ...
        my $in=<STDIN>;
        print "$in wasn't a number!";input() unless $in =~ /\d/;
    }