my %hash; @hash{ qw/ one two three / } = ( 1..3 ); #### $someval = ${@hash{ qw/ one two three / } = ( 1..3 )}{two};