I want to iterate over a hash and for every key/value pair, do a s/key/value/. I can make the key match by creating the entry with the key as
, but I can't get the $1 to evaluate in the value portion. If I store it as
then I (obviously) get literally $1 in the output. If I store it as
then $1 holds the value of the previous match. What can I do so that $1 is interpolated when the s/// is run?