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
In reply to Re: BigInt, some of the time
by tachyon
in thread BigInt, some of the time
by John M. Dlugosz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |