in reply to mason and embperl
Personally, I'd look at HTML::Mason (which I'm using on stonehenge.com), or Template Toolkit, which I'm thinking about using in a big way.
-- Randal L. Schwartz, Perl hacker