in reply to Re^9: Why is pack("N",42949672965) giving me 00 00 00 05
in thread Why is pack("N",42949672965) giving me 00 00 00 05
ikegami most probably wants to point out the fact that, with a 'Q' specifier, 0xFFFF_FFFF will give a different result.
Hm. But that isn't what he said!
What he said was: "your very question demonstrates that -1 and 0xFFFF_FFFF pack differently.". Which is patently and demonstrably wrong.
And I don't see any mention of using OxFFFF_FFFF in conjunction with the Q specifier in Tux post.
Indeed Tux didn't use, nor advocate the use of 0xFFFF_FFFF at all. The whole point of his post was: "Why not simply use -1?" which he demonstrated did the right thing with both 'N' & 'Q'.
|
|---|