in reply to 64 bit integers woes

I don't get that behaviour on the 64-bit 5.8.8 Perl (little-endian system) to which I have access.
$ perl -MMath::BigInt -le'print unpack "H*", pack "Q", Math::BigInt->n +ew("18446744073709551360");' 00ffffffffffffff $ perl -MMath::BigInt -le'print unpack "H*", "".reverse pack "Q", Math +::BigInt->new("18446744073709551360");' ffffffffffffff00

Replies are listed 'Best First'.
Re^2: 64 bit integers woes
by semuel (Novice) on Sep 07, 2009 at 09:05 UTC

    You are right, after farther inspection I see that some of the test pass on 64 bit enabled.

    still, I can't figure out why on some 64 bit systems it give the correct result, and on other 64 bit systems it fails.

    And on the 5.6 front, every 64 bit system fails.
      Does it fail if you explicitly ->numify the BigInt?