B
Bill
According to the perlfunc perl docs, the 'Q' in format string allows
64-bit entities to be used in pack and unpack:
my $binary = pack 'Q', $big_number;
my @int64 = unpack 'Q*', $buffer;
Two questions:
1. Is the 'Q' network order, or machine order in its bytes?
2. Can anyone show an efficient code snippet to emulate the above in
32-bit perl versions that may not support 64-bit pack and unpack?
64-bit entities to be used in pack and unpack:
my $binary = pack 'Q', $big_number;
my @int64 = unpack 'Q*', $buffer;
Two questions:
1. Is the 'Q' network order, or machine order in its bytes?
2. Can anyone show an efficient code snippet to emulate the above in
32-bit perl versions that may not support 64-bit pack and unpack?