Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
Syntactic Confectionery Delight
 
PerlMonks  

Re: Help with hash/array data structure

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

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.