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

Re: How to improve my code? main concern:array as hash element

by choroba (Bishop)
on Nov 23, 2011 at 15:40 UTC ( #939687=note: print w/replies, xml ) Need Help??


in reply to How to improve my code? main concern:array as hash element

You can store the reference to an array in your hash:
%gp = ( Gi => [qw[Galpha-i1 Galpha-i2 Galpha-i3]], ); print $gp{Gi}[1];
See also perlref.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://939687]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2018-01-17 07:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (196 votes). Check out past polls.

    Notices?