in reply to interpolate variable in a hash?
Update: Caveat -- I answered your question, but you really should give thought to other ways of accomplishing what you are trying to do. Things like eval of strings can get you into trouble if you don't really know what you are doing.my $interpolated = eval "$hash{key1}";
|
|---|