Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Help with hash/array data structure

by shockme (Chaplain)
on Nov 11, 2003 at 17:23 UTC ( #306279=note: print w/ replies, xml ) Need Help??


in reply to Help with hash/array data structure

Unless I've misread the above, you're wanting to store the array as a hash element. If so, the following should illustrate one way to do it:
my @array = qw (ident RDP_Ident Radar_Site_Ident site_x site_y Useful_Vol_Upper Useful_Vol_Lower Useful_Vol_North Useful_Vol_South Useful_Vol_East Useful_Vol_West Rotation Rotation_x Rotation_y Reserved QNH_Datum terminator chksum ); my %Idents; $Idents{ Format_7 } = \@array; foreach my $element (@{$Idents{ Format_7 }}) { print "$element\n"; }

If things get any worse, I'll have to ask you to stop helping me.


Comment on Re: Help with hash/array data structure
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2015-07-03 02:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (47 votes), past polls