my %vars = ( the_var_i_want => 'this is the actual value' ); chomp (my $the_name = ); print $var{"${the_name}_i_want"};