in reply to Re: split 64 bit number
in thread split 64 bit number
my $num = 10531788168169408; my($l,$r) = ($n>>32 & 0xFfffFfff, $n & 0xFfffFfff);
You can tell if perl is compiled with 64-bit integer support with perl -v. It will say something like:
This is perl, vX.Y.Z built for i686-linux-64int-ld
or maybe:
This is perl, vX.Y.Z built for sun4-solaris-thread-64all
(Of course the part that's emphasized is all that's important there.)
|
|---|