That's exactly what unpack (and pack for the documentation) are for.
Depending on whether your sending device sends in big-endian or little-endian order, the N or V template elements look like you want them.
Also, if you have the C++ source code of the remote end, consider Struct::Binary::C, which was written for importing C structs sensibly into Perl.
In reply to Re: converting artibrary binary data to numeric values
by Corion
in thread converting artibrary binary data to numeric values
by markle
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |