So first reaction was to do something like $template_file_string =~ s/(\$\w+)/$$1/g; Cool i thought, but this does not work. So I resorted to eval'ing the file string, however that presents a HUGE security hole since if the file contained something like "; rm -rf * ;" Yikes.... It is even more dangerous if the data was coming from user input! So right now I am replacing ";" with "\;". But there must be a better way.... <h1> $title </h1> ...
In reply to symbolic references in reg exp by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |