[Israel.pm] BigInt / pack problems

Shmuel Fomberg semuelf at 012.net.il
Sun Sep 6 13:59:38 PDT 2009

Hi All.

It is also possible to use Perl 5.8, with "Q" instead of "Q>".
(it just will be machine-native instead of BE)
Still, the results are the same.

I also see reports from Perl 5.6.2 with 64 bit support. I get a weird
result there with all-zeros.

(reminder: my module is Data::ParseBinary)


Shmuel Fomberg wrote:
> Hi All.
> Can someone with tell me why this code:
> (you will need Perl 5.10 and 64 bit support and Math::BigIn installed)
> print unpack "H*", pack "Q>", Math::BigInt->new("18446744073709551360");
> prints 'ffffffffffffffff' instead of 'ffffffffffffff00' that I expect it 
> to?
> Thanks,
> Shmuel.

More information about the Perl mailing list