IMHO it's always best to use seperate HTML template files, for at least two very good reasons:
- Logical seperation of code and layout. Implementation of new designs, browser specific page etc becomes fairly trivial.
- Ease of maintenance, especially if the HTML files are updated by non Perl-literate folk.
Template Toolkit is a popular choice.
-- Michael Snell
-- michael@snell.com