On Sat, 20 Oct 2001, Derrik Pates wrote: > Subject says it all. Can it be done? I need some way to push a packet > count value into a Perl scalar, but there doesn't seem to be any way to > push a long long (which is typedef'd as a Quad/UQuad) into a scalar at > all. I know this has been discussed before, but I never really saw any > real solution to the problem. Should I just sprintf/asprintf it and push > it in as a string? Since it will get converted on the fly into an > integer...
I would store it as an 'NV' (double). Since it starts off as an integer value there won't be any loss of precision for the round-trip. I've used this trick to pass both 64-bit ints and unsigned 32-bit ints. Steve