in reply to Integer overflow

terranullis:

Any particular reason you want the wrong answer? I would imagine that you could use whatever Obj-C's equivalent to long long to get 64-bit integers. But if you really want 32-bit integers, and want perl to have the same values, you could probably use pack and unpack to truncate the data and interpret it as a signed 32-bit value. (I can't tell you the details off the top of my head.)

...roboticus

Replies are listed 'Best First'.
Re^2: Integer overflow
by terranullis (Initiate) on Apr 23, 2009 at 23:56 UTC
    Yes, I need the wrong answer - it's a license validation thing. I will try the pack/unpack code suggested by almut. I just got started with perl about two minutes ago so this is all news to me. Thanks a lot for helping out!