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
|
---|
In Section
Seekers of Perl Wisdom