in reply to BigInt, some of the time

my $LIM = 2**32 -1; my $int = $num > $LIM ? Math::BigInt->new($num) : $num;

Another solution is to just compile perl with 64 bit support which give you really big ints....

cheers

tachyon

Replies are listed 'Best First'.
Re: Re: BigInt, some of the time
by John M. Dlugosz (Monsignor) on Feb 04, 2004 at 03:42 UTC
    Last I heard, the Win32 build did not support 64-bit. I've often wished the Q format was supported by pack/unpack since win32 has some 64-bit values.