http://qs321.pair.com?node_id=626354


in reply to read in file with vars

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