I have recently downloaded strawberry Perl 5.10 for Windows Vista. I want to write Perl programs that can run in a Browser. I have written (copied) a simple perl script that is supposed to output to IE. However, when I put this in the Browser address bar: C:/inetpub/wwwroot/simpleStrawBPerlScriptInBrowser.pl it simply opens the file in notepad. Here is the contents of the file:
print "Content-type: text/html \n\n"; #HTTP HEADER
#CREATE STRINGS WITH ESCAPING CHARACTERS
$string = "David paid \$4.34 for Larry\'s shirt.";
$email = "youremail\@youremail.com";
#PRINT THE STRINGS
print "$string<br />";
print "$email<br />";
print '$string and $email';
Windows Vista comes with IIS 7.0. How do I configure my Perl Script to run in the Browser?