Hi,
I have a hash of variables with the name of the variable as key. Now I have some strings that can contain a $-sign followe d by a variable name. I would like to have the variables replaced with their values. I've tried the following with no succes:
$value =~ s/\$([a-z.]+)/$db[$1]/g;
Does anyone know how to do this?
I have a hash of variables with the name of the variable as key. Now I have some strings that can contain a $-sign followe d by a variable name. I would like to have the variables replaced with their values. I've tried the following with no succes:
$value =~ s/\$([a-z.]+)/$db[$1]/g;
Does anyone know how to do this?