in reply to mason and embperl

There are so many good solutions in the CPAN, that a roll-your-own templating system doesn't make much sense any more.

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