in reply to Formatting a text file for browser
Have your CGI script return a content type of "text/plain". You don't need to do any formatting whatsoever.
Code is as follows:
print "Content-type: text/plain\n\n"; # print text file here
Or if you're using CGI.pm...
my $q = CGI->new(); # handle any CGI parameters, set other headers, etc. print $q->header( { -type=>'text/plain' } ); # print text file here
|
|---|