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
In reply to Running Perl Scripts by Sajoe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |