What web server is installed on that computer? Some web servers need to use non parsed header scripts (NPH) and I heard that this is the case with MS IIS if this is the web server.
The line break is not very important for perl scripts under Windows. I use only the Unix end of line (lf) under Windows for my perl scripts and they work fine. I don't know if they would be working the same if I will be using Mac end of lines, but with Unix end of line they work fine. I guess you should send that script to the list... Teddy, Teddy's Center: http://teddy.fcc.ro/ Email: [EMAIL PROTECTED] ----- Original Message ----- From: "Mike Harrison" <[EMAIL PROTECTED]> To: "'Andrew Brosnan'" <[EMAIL PROTECTED]>; "Mike Harrison" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, August 05, 2003 3:07 AM Subject: RE: Perl line breaks Hi Andrew, 1. Yes, I am using the same headers as the perl program that works, so don't think it is that - I will check that there is a blank line between the 'Content-Type:...' line and the next. 2. My first line in the perl program is: #!perl -w (being a Windows-based server, it doesn't require the full path. The -w to warn of errors/mistakes etc.) I will need to wait till tonight before sending some of the perl program and header info... Cheers, Mike. -----Original Message----- From: Andrew Brosnan [mailto:[EMAIL PROTECTED] Sent: Tuesday, 05 August, 2003 10:03 AM To: Mike Harrison Cc: [EMAIL PROTECTED] Subject: Re: Perl line breaks On 8/5/03 at 9:32 AM, [EMAIL PROTECTED] (Mike Harrison) wrote: > Hello all, > > Well, I have spent the last few nights messing around trying to work > out why one of my PERL programs doesn't work. s/Perl/PERL/ > With one program, I am getting an error message as follows: > > CGI Error The specified CGI application misbehaved by not returning a > complete set of HTTP headers. The headers it did return are: How are you creating your headers? Perhaps you could show that here. > > My question is: Are line breaks important with PERL programs With headers they are: print "Content-Type: text/html\n\n" #<-- blank line required > does anybody know why I am getting this error? Maybe Perl does. Did you ask?: use warnings; -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]