Sajoe has asked for the wisdom of the Perl Monks concerning the following question:
Hello,
Im a beginner to programming in Perl. Ive already installed IIS and ActivePerl software. IIS works just fine as ive tested it with ASP scripts. However, when I run a basic perl script from localhost in IIS 5.1 (ie. http://localhost/hello.pl-where my virtual scripts directory is c:/inetpub/scripts) but am stuck with the following error:
CGI Error The specified CGI application misbehaved by not returning a complete s +et of HTTP headers. The headers it did return are: Too late for "-T" option at C:\Inetpub\Scripts\hello.pl line 1.
What does this mean and how do i fix it? Below is the code that ive created in hello.pl:
Thank you in advance I hope to hear from you soon! Joe#!C:\Perl\bin\perl.exe -wT use strict; use cGI ':standard'; print "Content-type: text/html"; print "<html>"; print "<head><title>wow</title></head>"; print "<body>"; print "IIS Perl Interpreter works jus fine"; print "</body>"; print "</html>";
Edit by thelenm: formatting
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Running Perl Scripts
by Roger (Parson) on Nov 06, 2003 at 03:17 UTC | |
|
Re: Running Perl Scripts
by sunadmn (Curate) on Nov 06, 2003 at 03:35 UTC | |
|
Re: Running Perl Scripts
by inman (Curate) on Nov 06, 2003 at 08:54 UTC | |
|
Re: Running Perl Scripts
by tcf22 (Priest) on Nov 06, 2003 at 03:30 UTC | |
by Roger (Parson) on Nov 06, 2003 at 03:37 UTC | |
|
Re: Running Perl Scripts
by ysth (Canon) on Nov 06, 2003 at 03:47 UTC |