Help for this page

Select Code to Download


  1. or download this
    my $test="my_variable_name"; #imagine this is a hash key
    my $default_value="the value I set"; #while this is the hash value
    ...
    print "the value of \$$test = ${$hash{$test}}\n";
    ${$hash{$test}} = "A new value";
    print "the value of \$$test = ${$hash{$test}}\n";