what would be the best way to assign each value to a variable name?
Something like this, for example:
my ($long1, $long2, $byte1, $byte2, $double) = unpack 'NNCCd', $raw;
(of course, choose names as you see fit...)
In reply to Re^5: HEX to floating point
by almut
in thread HEX to floating point
by Spooky
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |