There are a number of FAQ's available at http://www.activestate.com and http://www.perl.com that you can check out for IIS server setups. Here's the easy way...

First of all, install perl.� You can get a copy from the addresses above.

RULE NUMBER 1...
NEVER, EVER, NEVER, NEVER, and NEVER put the perl executable, perl.exe in your cgi executable directory.

If you're using IIS 4, you can...

In the Internet Service Management Console, select the server you will be setting up to execute perl scripts.� Create a folder with any name you wish. Right click on the folder, and choose properties.� In the "Directory" tab, set the permissions to "Execute (including script)".

To the right, you should see a "Create" button, click on that.� The grey box will now become an area that you can type in, so that you can name your directory (not necessary).

Next, click on "Configuration".� Click on the ADD button.� Use the Browse button to locate the perl executable, usually \perl\bin\perl.exe After locating the file, add to the end of the path "%s %s" without the quotes.� i.e. X:\perl\bin\perl.exe %s %s
Where X is the location of the drive.

This will ensure that your script runs properly.� If you are using the perl dll file for processing, you do not need the above setting, remove the %s's.

Next, choose the extension that you will be using for script files (.cgi is the most common one, however, you can call it anything you wish)

Click ok till you get back to your management console.� Stop and restart the server.

If you are using IIS3 or below...� Navigate to the following registry key:
HKLM\SYSTEM\CurrentControlSet\Services\W3SVC\Parameters\Script Map
once in there, create or modify your STRING value with the name of the
extension of the file you'd like to use as your perl executable.� For
example...� Create a string value .cgi then double click on it, and enter
the fully qualified path of your perl executable... \perl\bin\perl.exe and
add "%s %s" to the end of the line without the quotes.
i.e. X:\perl\bin\perl.exe %s %s
Where X is the location of the drive.
Again, if you are using the perl dll file, you do not need the %s's
When complete, use your IIS management console to stop and restart the
server.

Your new url should be something like:
http://yourservername.xyz/cgi-bin

And your script would be located at something like:
http://yourservername.yxz/cgi-bin/myscript.cgi

Here's a quick and dirty hello world script:

myscript.cgi
-------------
Print "Content-Type: Text/HTML\n\n";
Print "Hello World";
Exit 0;

Hosted by www.Geocities.ws

1