in reply to symbolic references in reg exp
btrott
Thank for the info:
BTW, I had tried
$template_file_string =~ s/\$(\w+)/${$1}/g;
And that did not work either, however your
$template =~ s/\$(\w+)/$vars{$1}/eg;
slightly modified as
$template =~ s/\$(\w+)/$main::{$1}/eg;
Achieved the desired results.