in reply to How do you deal with HTML in Perl?

You might want to take a look at Text::Template as well. It allows you to use Perl inside of the template. I use it with HTML and it works good for my needs.