I have a hash , and in the value part of that (which is a string , So that variable interpolation can happen) i have used a variable .
Now later in the program i set this variable and try to substitute the value of it in the value of hash but it is returning null;
Now later in the program i set this variable and try to substitute the value of it in the value of hash but it is returning null;
Code:
%Hash=('add'=> " test $type "); $type = 1000; print " $Hash{$type};";
Comment