From the CGI docs:
PRETTY-PRINTING HTML
By default, all the HTML produced by these functions comes out as one long line without carriage returns or indentation. This is yuck, but it does reduce the size of the documents by 10-20%. To get pretty-printed output, please use the CGI::Pretty manpage, a subclass contributed by Brian Paulsen.
use CGI::Pretty; print "foo\n"; print "bar\n";
Does what you mean.
In reply to Re: strange newline behavior in Win32 with CGI.pm and STDOUT
by GrandFather
in thread strange newline behavior in Win32 with CGI.pm and STDOUT
by Errto
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |