in reply to Where are these newlines coming from?

VirtualSue has kindly pointed out that the newlines disappear if CGI is not invoked. While CGI is not useful in this context, it will be need for later portions of the script. So new question, why would CGI be inserting these newlines? Admittedly chomping them takes care of the problem, but I am still curious as to why it is happening.
TIA
jg
_____________________________________________________
If it gets a little bit out of hand sometimes, don't let it fool you into thinkin' you don't care.TvZ

Replies are listed 'Best First'.
Re: Re: Where are these newlines coming from?
by virtualsue (Vicar) on Feb 15, 2002 at 22:13 UTC
    That's not what I meant. :) When we discussed it in the chatterbox, you said

    another interesting clue is that now UltraEdit isn't asking if I want it converted to DOS format anymore

    I interpreted that to mean that you were doing some cross-platform dos-unix stuff, and chomp won't chomp correctly if you run it on unix but feed it input with ms-dos style newlines. That's because unix uses LF for newline, and ms-dos uses CRLF. I have no idea if this applies to what you were doing, but your program works fine on my solaris box, with or without CGI.