This
Should be:my %packet_fields = ( $Idents{ Format_7 } => qw( ident flags x ...
Likewise, this:my %packet_fields = ( $Idents{ Format_7 } => [qw( ident flags x ...]
Should be this:$Idents{ Format_7 } => qw(ident RDP_Ident Radar_Site_Ident site_x
The value of a key must be a scalar or *reference* to an array or hash, not an actual array or hash, as you had in your code. Carter's compass: I know I'm on the right track when by deleting something, I'm adding functionality$Idents{ Format_7 } => [qw(ident RDP_Ident Radar_Site_Ident site_x ... ]
In reply to Re: Help with hash/array data structure
by princepawn
in thread Help with hash/array data structure
by robinbowes
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |