in reply to Manipulating 64-bit values

Right, math operations through 5.6.x "promote" to floating point. If you've a 64-bit integer perl without longer (80 bit or more) floats, this is bad.

What you need to do is do all your manipulation in a block with "use integer;" in effect. That'll stop perl from promoting.

Replies are listed 'Best First'.
Re: Re: Manipulating 64-bit values
by rjbell4 (Novice) on Jun 05, 2002 at 00:25 UTC
    Excellent! This handles everything except for using hex() to convert the 64-bit quantity from a hexadecimal string. That, however, should be simple enough to deal with (though if you had any ideas on how to make "use integer" carry through, I'd be interested).

    This should make life much easier!