in reply to All Hail the Template Toolkit!

My interest is in generating HTML.

It seems to me that if one is using CGI.pm then one will probably not use Template-Toolkit very often, because their approaches are different.

CGI.pm aims to turn HTML tags into perl functions. Thus Print p('hello') generates the appropriate paragraph tags.

Template-toolkit, on the other hand, aims to leave markup as is and turn perl into markup. For instance, instead of saying in CGI.pm

if (condition){ print p('hello'); }
it appears that one would say
[% IF condition %] <p>hello</p> [% end %]

In cgi.pm, everything, including output, is a perl statement. In template-toolkit, nothing in the template is a perl statement, and all output appears through the template.

In my view, combining the two approaches would be very,very confusing.

Am I correct that those who use CGI.pm to generate a page do not also use template-toolkit at the same time to generate it?