Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: perl hash array printing

by Rudolf (Pilgrim)
on Sep 05, 2012 at 01:43 UTC ( #991718=note: print w/replies, xml ) Need Help??


in reply to perl hash array printing

Hello, hope this helps a bit my example is with an annonymous array though:

use v5.14; my %hash = ('hello', => ['world','there']); print $hash{'hello'}[1];

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://991718]
help
Chatterbox?
[toolic]: can this be shortened? /\b(generate| endgenerate)\b/

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2017-07-26 20:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (401 votes). Check out past polls.