Help for this page

Select Code to Download


  1. or download this
    return 1
      if ( $] >= 5.008    and /^(Inf(inity)?|NaN)$/i ) 
      or ( $] >= 5.006001 and /^Inf$/i               );
    
  2. or download this
    sub looks_like_finite_number {
      my $candidate = shift;
    ...
        or ( $] >= 5.006001 and $candidate =~ /^Inf$/i );
      return 1;
    }