ASP   «Prev 

Classic ASP versus legacy Perl

The ActiveX Scripting version of Perl (called PerlScript) integrates well with ASP. To use Perl with ASP, you need to download and install Perl for Windows and then install PerlScript. Both are available from ActiveState, the company that developed the Perl version distributed with the Windows Resource Kit (the nomenclature for the Windows operating system).
PerlScript can be downloaded from the following link ActiveState
With ActiveState, you can install Perl and the State Tool directly in the command line, or you can use a Windows installer for ActivePerl 5.28. Active State allows sign-up with GitHub and provides documentation on many Perl programming topics such as
  1. using Perl with HTML
  2. and Perl scripts.

Perl for ASP uses Perl's object-oriented features to integrate with the standard objects.
If you have not used Perl with objects before, you may need some practice. For example, to get the value of the Color variable passed as part of a query string, you would write:
$Request–>querystring('Color')–>item

If you are going to use PerlScript with ASP and run Perl scripts on your Web server, there should not be any challenges. Be careful, however, about installing it for client-side use. Perl is a full-blown programming language that does not have the usual scripting language safety features. For example, it is easy to write a Perl script that deletes every file on a disk.

PerlScript History

PerlScript was an ActiveX scripting engine that allowed you to use Perl with any ActiveX scripting host. Towards the end of the dotcom era, ActiveX scripting hosts included the following legacy technologies:
  1. Internet Information Server 3.0/4.0/5.0
  2. Peer Web Services 3.0/4.0
  3. Microsoft Internet Explorer 5.0x
  4. Windows Scripting Host

What do I need to run PerlScript?

PerlScript was an ActiveX scripting host for the legacy Windows operating systems.
How do I install PerlScript?: When you launch the ActivePerl installer, PerlScript is one of the components you can optionally install. You must install, or have previously installed, ActivePerl to use PerlScript.
Why are not my event handlers called? Event names are case sensitive, so their lookup depends on using the correct characters. Event name lookup can be made case insensitive by adding key
HKEY_LOCAL_MACHINE\SOFTWARE\ActiveState\PerlScript\1.0
REG_DWORD: NoCaseCompare = 1 (default)