Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Arrays & Hashes

by friedo (Prior)
on Aug 18, 2005 at 18:48 UTC ( [id://484919]=note: print w/replies, xml ) Need Help??


in reply to Arrays & Hashes

You can create hashes of arrayrefs easily:

my %hash = ( foo => [ 0,1,2 ], bar => [ 7,8,9 ] );

To access individual elements:

my $element = $hash{foo}[2];

For more, see perldsc.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-03-29 06:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found