our($VERSION, @ISA, @EXPORT, %EXPORT_TAGS, $Inf);
BEGIN {
- my $e = $!;
- $Inf = CORE::exp(CORE::exp(30)); # We do want an arithmetic overflow.
- $! = $e; # Clear ERANGE.
- undef $Inf unless $Inf =~ /^inf(?:inity)?$/i; # Inf INF inf Infinity
+ unless ($^O eq 'unicosmk') {
+ my $e = $!;
+ # We do want an arithmetic overflow.
+ eval '$Inf = CORE::exp(CORE::exp(30))';
+ $! = $e; # Clear ERANGE.
+ undef $Inf unless $Inf =~ /^inf(?:inity)?$/i; # Inf INF inf Infinity
+ }
$Inf = "Inf" if !defined $Inf || !($Inf > 0); # Desperation.
}