As the others have said, I would suggest HTML::Template. One of the things you don't want to run into is letting your script and template bleed together. I've seen CGI Perl tutorials that define variables inside their templates - occasionally a variable would just appear in the script out of nowhere. Once I determined that it didn't appear anywhere else in the script I then had to sift through the templates until I found where the variable was defined. When the author has created one template file per script state (which makes me wonder why he bothered with templates at all), that can take a while.
HTML::Template doesn't really allow this sort of a maintainability nightmare to happen.
--
Oh Lord, grant me the wisdom to shut my mouth when I don't know what I'm talking about.
|