Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

(dkubb) Re: (2) %Hashing Arrays

by dkubb (Deacon)
on Mar 18, 2001 at 12:54 UTC ( [id://65249]=note: print w/replies, xml ) Need Help??


in reply to %Hashing Arrays

You could make this a hash of array references, like this:

my %station_data = ( 1 => \@station1, 2 => \@station2, 3 => \@station3, 4 => \@station4, 5 => \@station5, 6 => \@station6, 7 => \@station7, 8 => \@station8, 9 => \@station9, );

For example, if you need to access the second element inside @station5, through the new %station hash, you would say:

print $station_data{5}[1];

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2024-04-19 20:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found