in reply to How to unpack numbers with varying sizes?
# my $bytes = read ... my $bitstring = unpack 'B*', $bytes; $bitstring = sprintf '%.64d', $bitstring; my $num = unpack 'Q', pack 'B*', $bitstring;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to unpack numbers with varying sizes?
by Anonymous Monk on Feb 13, 2011 at 04:16 UTC |