Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Help with hash/array data structure

by princepawn (Parson)
on Nov 11, 2003 at 17:24 UTC ( [id://306281]=note: print w/replies, xml ) Need Help??


in reply to Help with hash/array data structure

This

my %packet_fields = ( $Idents{ Format_7 } => qw( ident flags x ...
Should be:
my %packet_fields = ( $Idents{ Format_7 } => [qw( ident flags x ...]
Likewise, this:
$Idents{ Format_7 } => qw(ident RDP_Ident Radar_Site_Ident site_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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://306281]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2024-04-25 09:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found