in reply to How to improve my code? main concern:array as hash element
%gp = ( Gi => [qw[Galpha-i1 Galpha-i2 Galpha-i3]], ); print $gp{Gi}[1]; [download]