http://qs1969.pair.com?node_id=342826


in reply to How to format cgi output?

Another option if you don't care about it being HTML is to change the first line to:
print "Content-Type: text/plain\n\n";
Then you'll end up with a text document, which the various browser will either download or display.