Help for this page

Select Code to Download


  1. or download this
    #!perl -w
    use strict;
    ...
      }
    }
    
  2. or download this
    sub if_integer
    { my $i = shift;
     
      return defined $i && $i =~ m/^\d+$/;
    }
    
  3. or download this
      return defined $i && $i =~ m/^\d+$/ || 0;