in reply to Re^2: Regex as an argument to a sub
in thread Regex as an argument to a sub

Nope, you're doing it right, I missed a layer of eval. Since the substitute is a string variable containing another variable to interpolate, two evals are needed.

After Compline,
Zaxo