Help for this page

Select Code to Download


  1. or download this
    die "Gotcha!" if validate_integer("not an integer");
    
  2. or download this
    sub is_integer {
      $_[0] =~ /^-?\d+\z/;
    }