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

Re: How do I use/reference Multidimensional hashed arrays?

by Crulx (Monk)
on Jan 21, 2000 at 04:38 UTC ( #2288=note: print w/replies, xml ) Need Help??


in reply to How do I use/reference Multidimensional hashed arrays?

Here is how you create and use a multidimensional hash that contains arrays.
my $data_source = {}; for( my $i = 0; $i < 10; $i++) { $data_source->{a}[$i] = "source a's data"; $data_source->{b}[$i] = "source b's data"; $data_source->{c}[$i] = "source c's data"; }

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2022-10-06 09:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred way to holiday/vacation is:











    Results (26 votes). Check out past polls.

    Notices?