my %hash = ( foo => [ 0,1,2 ], bar => [ 7,8,9 ] ); #### my $element = $hash{foo}[2];