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
In reply to Re^3: Regex as an argument to a sub
by Zaxo
in thread Regex as an argument to a sub
by Shaune
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |