in reply to Re: print content in cgi and html
in thread print content in cgi and html

I personally find that using CGI's named subroutines almost always is the wrong way to factor code for all but very short CGI scripts for personal use.

Just because someone respected found a piece of code worth writing does not mean that you should be using it whenever you can.

For some generalities on the design factors that go into choosing how to integrate HTML and your Perl code together, you can read Re (tilly) 6: Code Critique. For lots more on why templating is generally a better solution when you have a large problem, see Building and Managing Web Sites with the Template Toolkit. Before choosing the templating system for you, I strongly suggest reading perrin's Choosing a Templating System.