Well, you're not printing any headers out. Check the IIS error logs. Where is your shebang line? Do you have pl/cgi extension associated with perl or is IIS relying on the shebang line? You also have to escape the / in closing html tags if you are going to write them out via perl. e.g <table></table> should be <table><\/table>
I'd suggest using CGI.pm. This takes the hard work out of writing cgi pages. HTH John -----Original Message----- From: Mark Smith [mailto:[EMAIL PROTECTED]] Sent: 23 November 2001 05:46 To: [EMAIL PROTECTED] Subject: Newbie _ HTTP HEADERS I have just started PERL..and am learning to use environmental variables etc.all works fine at school.but at home no luck. I am running WIN2K IIS..have activeperl 5.6.1..here is the error "The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:" Here is the code but I think it may be my server config. Any help greatly appreciated Mark Smith open(COUNTREAD, "counter.dat"); my $data = <COUNTREAD>; $data++; close(COUNTREAD); open(COUNTWRITE, ">counter.dat"); print COUNTWRITE $data; close(COUNTWRITE); print "<body bgcolor='ffffff'><table><tr><td width='270'><h3>"; print "<STRONG><font color='996633' face='arial'>Number of Site hits received during development.</font></STRONG></h3></td><td>"; for ($count = 0; $count < length($data); $count++ ) { $number = substr( $data, $count, 1 ) ; print "<IMG SRC=\"$number.gif\">"; } print "</td><td><STRONG><h3><font color='996633' Current Address , $ENV{ "REMOTE_ADDR" }, face='arial'></font></h3></STRONG></td></tr></table></body></td></tr></t able></body>"; --------------------------Confidentiality--------------------------. This E-mail is confidential. It should not be read, copied, disclosed or used by any person other than the intended recipient. Unauthorised use, disclosure or copying by whatever medium is strictly prohibited and may be unlawful. If you have received this E-mail in error please contact the sender immediately and delete the E-mail from your system. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]