in reply to Regex and HTML Question

An alternative to HTML::Template is Embperl - try the following location:
http://perl.apache.org/embperl/index.html

A slightly different purpose, but worth looking at.