$the_var_i_want = "this is the actual value I want to get"; $the_name = ; #say, this would be "the_var\n" chomp $the_name; print ${"${the_name}_i_want"};