Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Array inside hashes

by perlmonkey (Hermit)
on Jul 22, 2000 at 11:48 UTC ( [id://23892]=note: print w/replies, xml ) Need Help??


in reply to Array inside hashes

For an array reference use '[]' instead of '()'
%hash = (name => foo, list => [1, 2, 3]); $ref = $hash{list}; @array = @$ref; foreach(@array) { print }
See perldoc perlref

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-03-29 07:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found