Because template 'N' is for a unsigned 32-bit value, but 42949672965 requires 36-bits: 0xA_0000_0005; so the high 4-bits are discarded leaving: 0x0000_0005.
If your Perl is capable, use 'Q' instead for integers > 32-bit.
In reply to Re: Why is pack("N",42949672965) giving me 00 00 00 05
by BrowserUk
in thread Why is pack("N",42949672965) giving me 00 00 00 05
by isync
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |