Use a reference:
$test = 'test'; printf "Was: %s\n",$test; $hash{t} = \$test; $change = 'changed'; ${$hash{t}} = $change; printf "Now: %s\n",$test;
In reply to Re: Changing a variable which is a value of a hash
by GotToBTru
in thread Changing a variable which is a value of a hash
by benedicth
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |