in reply to converting artibrary binary data to numeric values
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: converting artibrary binary data to numeric values
by markle (Initiate) on Oct 01, 2012 at 19:48 UTC | |
by Corion (Patriarch) on Oct 01, 2012 at 20:17 UTC | |
by markle (Initiate) on Oct 01, 2012 at 21:27 UTC | |
by markle (Initiate) on Oct 01, 2012 at 22:08 UTC | |
by Corion (Patriarch) on Oct 02, 2012 at 07:18 UTC | |
by markle (Initiate) on Oct 02, 2012 at 20:31 UTC | |
by afoken (Chancellor) on Oct 02, 2012 at 06:21 UTC |