in reply to \n won't work?!

I'm going to look into my crystal ball and predict that you are sending a content-type of text/html. Browsers generally collapse whitespace in HTML.

-sauoq
"My two cents aren't worth a dime.";

Replies are listed 'Best First'.
Re: Re: \n won't work?!
by Anonymous Monk on Dec 29, 2002 at 05:09 UTC
    I am using the line:
    print "Content-type: text/html\n\n";

    Why do you think the book (the book: CGI and Perl for the WWW, PeachPit Press) would use this line along with examples of using \n for a new line?

      There are three reviews of that book on this site. Perhaps you should take a look at those. You'll see that the book isn't very highly regarded.

      --
      <http://www.dave.org.uk>

      "The first rule of Perl club is you do not talk about Perl club."
      -- Chip Salzenberg