in reply to for HTML output?

To keep stuff maintainable by not-perl'ers, you could place your heredocs outside of your code and touch nothing else.
Unless of course you really badly want to use all the nifty CGI routines.

er formait hyarya.
"Field experience is something you don't get until just after you need it."