Help for this page

Select Code to Download


  1. or download this
    {
      print "Number?\n";
      redo unless <STDIN> =~ /^\d+$/;
    }
    
  2. or download this
    {
      print "Number?\n";
      redo unless <STDIN> =~ /^(\d+)$/ and $number=$1;
    }
    
  3. or download this
    print "Number?\n" while <STDIN> !~ /^\d+$/;