> -----Original Message-----
> From: Shmuel Fomberg [mailto:semu...@012.net.il]
> Sent: Sunday, September 06, 2009 11:58 PM
> To: module-authors@perl.org
> Subject: Re: BigInt / pack problems
> 
> 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.
> 
> Help?

Sorry, I don't have 64bit stuff. You can also try asking in PerlMonks.org if 
you haven't yet.

> (reminder: my module is Data::ParseBinary)
> 
> Shmuel.
> 
> 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.
> >

Reply via email to