Hi Nancy,

You should try using the CGI module, it eases the pain of doing CGIO
headers etc. Here is a basic sample script that uses CGI in 'OO' mode:

# start code

use strict;
use CGI;

my $page = new CGI;

# print header and start the markup output

print $page->header( "text/html" )
print $page->start_html( "hello from perl cgi!" );
print $page->h2("hello dave...");
print $page->end_html;

# end code

regards, Jeff



Nancy Wickstrom wrote:
Hi,

I'm a Perl and CGI newbie trying to get a successful Perl
installation on my IIS so that I can start to learn the stuff!  When
I try to test the server with a Perl script (see below), I get the
following message:

"The specified CGI application misbehaved by not returning a complete
 set of HTTP headers.  The headers it did return are: Too late for
"-T" option at c:\inetpub\scripts\perltest.pl line 1."

I installed my IIS server and tested it successfully with a simple
html file that I stored in C:\Inetpub\wwwroot\.   And I successfully
tested my perl script's syntax from the command line.  I stored my
test script in the C:\Inetpub\Scripts\ directory.  The script is
below.  Can anyone tell me what could be happening to cause the CGI
error message?  Thank you so much!

#!C:\Perl\bin\perl.exe -wT

print "Content-type:text/html\n\n"; print "This is testing a perl
script on my server.";


Nancy Wickstrom

_______________________________________________ ActivePerl mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to