in reply to How to display text in IE?
note the 'pre' tags in there. \n's at the end of lines are actually processed within those so your text file will output the way you want it to :).print "Content-type: text/html\n\n"; print <<"EOF"; <HTML> <HEAD> <TITLE>textfile</TITLE> </HEAD> <BODY> <PRE> $textfile </PRE> </BODY> </HTML> EOF exit;
|
|---|