It sounds like what you really want is an html template mechanism. I like Template Toolkit for that.
You could call s/\$([a-zA-Z_]\w*)/${$1}/g on the slurped file, though you'd want to switch off warnings for that.
After Compline,
Zaxo
In reply to Re: read in file with vars
by Zaxo
in thread read in file with vars
by meshgraphics
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |