[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] Followup on Signed Integers getting returned.



Stunning response. Posted an issue about packing and unpacking integers on
an application that worked great with Macperl(development environ),
Solaris(production machine), NT, some flavor of linux, etc. Got some great
ideas and the solution.

Had problems porting to linux-redhat-apache config. Integers were returned
signed vs the "expected" unsigned. And they were all over the map. No
translation hack.

The original code packed and unpacked a numeric value using the integer
call, sorta like this:

$offset=unpack("I*",$index);

This wicked machine made crazy return values. (see [MacPerl] Signed
Integers getting returned... Heck)

Replaced with

$offset=unpack('L',$index);

and life is good.

Thanks again
JMK

John-Michael Keyes - jk@infohiway.com
http://www.infohiway.com