>>>>> "rc" == robertchen117@gmail com <> writes:
rc> I am trying to use this to output the last 100 lines to a cgi
rc> page, but because it do not print \n in HTML, so everything is
rc> mess up.
In most cases, HTML treats white space as interchangeable, so there's
no difference between a \n and a space. If you use your browser's
"View Source" function, you'll be able to see that the newlines are
actually present.
The solution is to bring the way you send the output and the way you
expect the output to appear into agreement. If you want the newlines
in your output to be meaningful, send a Content-Type of text/plain.
If you want to send HTML, alter the output you produce so that it
produces the appearance you want. Neither of these is a Perl-specific
problem.
Charlton
--
Charlton Wilbur