Message-ID: <
20021014114954.GB80937@lyta.hut.fi>
p4raw-id: //depot/perl@18037
my $inf = eval '2**10000';
skip "Couldn't generate infinity - got error '$@'"
- unless defined $inf and $inf == $inf / 2;
+ unless defined $inf and $inf == $inf / 2 and $inf + 1 == $inf;
eval { $x = pack 'w', $inf };
like ($@, qr/^Cannot compress integer/);