This calls for unpack,
I've assumed network order for the data. Change to 'V' and 'v' for little-endian.my ($number,@data) = do { my $fmt = 'N'; $fmt .= ' n' x 600; unpack $fmt, $response; };
After Compline,
Zaxo
In reply to Re: Splitting Binary Data
by Zaxo
in thread Splitting Binary Data
by cableguy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |