What do we have in this session?
Running Perl from Windows Console
Next, from Windows command prompt, go to Perl root folder and run the perl command.
C:\>Perl>perl -h
Testing the Perl Engine
There are several ways to test Perl engine on Windows machine that running IIS.
Setting-up Perl Script Example for IIS Server
In order to setup PerlScript examples for Windows IIS follow the following steps.
a. Run the Management Console.
b. Create a new virtual directory called PerlScript.
Select the Default Web Site (or any name given to your default web site) > right click mouse > select New > select Virtual Directory sub menu. Click Next.
Give the virtual directory alias name, in this case we use PerlScript. Click Next.
c. Set the path to this directory to be aspSamples. Find and select the physical path to the sample Perl script. In this case it is C:\Perl\eg\aspSamples
Set the directory access permission as needed. Click Next.
Click Finish to complete the setup.
-------------------------------------------------------
During the installation, the environment variable has been setup for us.
Next, open IIS console management. The default first document already there (index.htm).
Select PerlScript virtual directory > right click mouse > select Browse menu.
If the web page doesn’t display, you may need to restart the IIS service.
Then, re-browse the web page.
d. Next, test from Internet browser. From Internet browser load http://localhost/PerlScript/index.htm
Note: If you want to test the ADO samples, ActivePerl requires 'Microsoft Data Access Components MDAC 2.5 RTM' available at Microsoft Data Access Component (MDAC).