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;

Reply via email to