robinbowes has asked for the wisdom of the Perl Monks concerning the following question:
I can't help thinking that I'd be better off using a data structure somehow. Is it possible to unpack directly into a structure and then access the individual elements of the structure?(my $flags, my $x, my $y, my $mode3, my $callsign, my $route, my $spare1, my $spare2, my $flight_level, my $terminator, my $chksum_packet) = unpack ( "B16 n2 A4 A8 A2 A A A3 C2" }, $buffer);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Data structure for this...
by ctilmes (Vicar) on Oct 16, 2003 at 12:44 UTC | |
|
Re: Data structure for this...
by Limbic~Region (Chancellor) on Oct 16, 2003 at 12:45 UTC | |
by robinbowes (Beadle) on Oct 16, 2003 at 16:22 UTC | |
by Limbic~Region (Chancellor) on Oct 16, 2003 at 16:39 UTC | |
by dragonchild (Archbishop) on Oct 16, 2003 at 16:40 UTC | |
|
Re: Data structure for this...
by calin (Deacon) on Oct 16, 2003 at 14:56 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |