robinbowes has asked for the wisdom of the Perl Monks concerning the following question:
This all works except the $x and $y values which are big-endian. Any offers?my $packet_template = "B16 s2 A4 A8 A2 A A A3 C2"; # read in next record from STDIN and store in $buffer ($Flags,$x,$y,$Mode3,$Callsign, $Route,$Spare1,$Spare2,$Flight_Level, $Terminator,$Checksum) = unpack ( $packet_template, $buffer );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: how to unpack a big-endian signed short integer
by BrowserUk (Patriarch) on Oct 15, 2003 at 19:45 UTC | |
by robinbowes (Beadle) on Oct 15, 2003 at 19:52 UTC | |
by BrowserUk (Patriarch) on Oct 15, 2003 at 20:06 UTC | |
|
Re: how to unpack a big-endian signed short integer
by jmcnamara (Monsignor) on Oct 15, 2003 at 22:10 UTC | |
|
Re: how to unpack a big-endian signed short integer
by etcshadow (Priest) on Oct 15, 2003 at 20:10 UTC | |
|
Re: how to unpack a big-endian signed short integer
by robinbowes (Beadle) on Oct 15, 2003 at 19:30 UTC |