|
Posted by Ben Morrow on March 20, 2008, 4:41 pm
Please log in for more thread options
>
> I tried,
>
> #!/usr/bin/perl -w
>
> use bigint;
>
> $test = 0x123456789abcdef;
>
> print "$test \n";
>
> But when i run:
>
> Hexadecimal number > 0xffffffff not portable
perldiag tells you this warning is in the 'portable' category. Since the
only warnings in this category are about integers greater than 2**32-1,
which you aren't interested in, simply turn them off:
use warnings;
use strict;
no warnings 'portable';
use bigint;
print 0x123456789abcdef;
At least on my perl (i386-freebsd-64int), I don't need 'bigint', since
despite being built for a 32-bit processor it can still use 64-bit
integers.
Ben
|