in reply to Re^2: Will Perl Scripts written on 64 Bit Windows run fine on 32 bit as well?
in thread Will Perl Scripts written on 64 Bit Windows run fine on 32 bit as well?
I have discovered the hard way, 'pack/unpack' functions for 64 bit do not operate on 32 bit machines.
I thought I'd covered that with "and (may) only support 32-bit integers.".
I was trying to put a floating point number into a "Q" format (64bit integer) but on the 32 bit machine it threw an exception.
Putting a floating point number into an integer makes no sense to me at all?
I'm surprised you got an "exception". If I try to use 'Q' on my 32-bit installation, it simply tells me that it is invalid:
c:\test>\perl32\bin\perl -wle"print pack 'Q', -1" Invalid type 'Q' in pack at -e line 1. c:\test>\perl32\bin\perl -wle"print unpack 'Q', 'abcdefghijklmnop'" Invalid type 'Q' in unpack at -e line 1.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Will Perl Scripts written on 64 Bit Windows run fine on 32 bit as well?
by flexvault (Monsignor) on Dec 04, 2011 at 16:42 UTC | |
by BrowserUk (Patriarch) on Dec 04, 2011 at 16:56 UTC | |
by flexvault (Monsignor) on Dec 05, 2011 at 11:19 UTC | |
by BrowserUk (Patriarch) on Dec 05, 2011 at 16:52 UTC | |
by flexvault (Monsignor) on Dec 06, 2011 at 13:31 UTC | |
by flexvault (Monsignor) on Dec 04, 2011 at 17:27 UTC |