in reply to How to format cgi output?

Just remember that your CGI script (usually) just outputs HTML. HTML stands for Hyper Text Markup Language. Everything you see being done with HTML (tables, frames, pre-formatted text, colors, font sizes, centered text, justified text, etc.) can all be done by having your CGI script output the HTML necessary.

It's easy to get all caught up in the fact that your CGI script has to print the content, forgetting the fact that your content can still be "marked up" with HTML tags.

So the fact is that your question is a HTML question. Because all that Perl has to do with it is that you're using Perl to output your HTML, and you just use simple print statements to do that. If you want Perl to output a centered header, you just say, "print "<center/><h2/>Header text!</h2></center>";"... pretty simple. The next trick is just learning HTML. I think that's a different website. ;)


Dave