I am trying to work thru the book “Sams Teach Yourself CGI” and am having trouble running the first sample script.
+++++++++++++++++++++++++++
#!C:\ProgramFiles\Perl\bin\perl
use CGI;
$query = new CGI;
print $query->header;
print "<html><head><title>A test</title></head>\n";
print "<body>The test was successful.</body></html>";
+++++++++++++++++++++++++++
I download and installed Active Perl and installed and started IIS on Windows XP. The script runs fine from the command prompt but, when running from IE (url: http://localhost/CGI_Bin/test.cgi) it just displays all the script in the browser window, on one line, i.e.
#!C:\ProgramFiles\Perl\bin\perl use CGI; $query = new CGI; print $query->header; print "\n"; print "The test was successful.";
Thanks