in reply to Formatting a text file for browser
print $q->header;
to something like this:
print $q->header(-type=>'text/plain');
(If you are using the function-oriented interface to CGI it's the same, of course, just omitting the $q->.)
(As always the CGI.pm docs are your friend.)
|
|---|