Note: The print unpack 'H*', is just a simulation of hexl-mode. It's the pack bit which does the work:
print unpack 'H*', pack 'Q>', 654848;; 000000000009fe00 ## With a Perl that doesn't support 64-bit ints (Q). ## Corrected &.v.% per ikegami++ print unpack 'H*', pack 'NN', int( $n / 2**32 ), $n % 0xffffffff;; 000000000009fe00
In reply to Re: zero fill with pack
by BrowserUk
in thread zero fill with pack
by Spooky
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |