PerlScript
Encyclopedia
PerlScript was initially solely an ActiveX
Scripting Engine produced by the company ActiveState
for use with Microsoft's
Internet Information Services
(IIS) that allows for programmers to use Perl
-based code in addition to, or in place of, VBScript
or JScript
in the context of web servers running the ASP
protocol. Subsequently Apache::ASP was created for the Apache
web server, which allows for coding with only Perl
, but neither VBScript nor JScript. PerlScript can also be used to write Windows Script Host
-based programs, similar to VBScript
.
Standalone PerlScripts can be executed if they are created with the file extension .pls, in which case they do not require enclosing XML
, e.g.
.pls files do not gain access to drag and drop WSH
functionality.
PerlScripts which have the extension wsf require XML
tags which specify the job id and script language, e.g.
wsf PerlScripts gain access to WSH
drag and drop functionality, similarly to Perl Droplets in the now-obsolete MacPerl.
Most WSH
objects are available via the implicitly created $WScript object.
ActiveX
ActiveX is a framework for defining reusable software components in a programming language-independent way. Software applications can then be composed from one or more of these components in order to provide their functionality....
Scripting Engine produced by the company ActiveState
ActiveState
ActiveState is a Canadian software company headquartered in Vancouver, British Columbia. It develops, sells, and supports cross-platform development tools for dynamic languages such as Perl, PHP, Python, Ruby, and Tcl, as well as language distributions and enterprise services...
for use with Microsoft's
Microsoft
Microsoft Corporation is an American public multinational corporation headquartered in Redmond, Washington, USA that develops, manufactures, licenses, and supports a wide range of products and services predominantly related to computing through its various product divisions...
Internet Information Services
Internet Information Services
Internet Information Services – formerly called Internet Information Server – is a web server application and set of feature extension modules created by Microsoft for use with Microsoft Windows. It is the most used web server after Apache HTTP Server. IIS 7.5 supports HTTP, HTTPS,...
(IIS) that allows for programmers to use Perl
Perl
Perl is a high-level, general-purpose, interpreted, dynamic programming language. Perl was originally developed by Larry Wall in 1987 as a general-purpose Unix scripting language to make report processing easier. Since then, it has undergone many changes and revisions and become widely popular...
-based code in addition to, or in place of, VBScript
VBScript
VBScript is an Active Scripting language developed by Microsoft that is modeled on Visual Basic. It is designed as a “lightweight” language with a fast interpreter for use in a wide variety of Microsoft environments...
or JScript
JScript
JScript is a scripting language based on the ECMAScript standard that is used in Microsoft's Internet Explorer.JScript is implemented as a Windows Script engine. This means that it can be "plugged in" to any application that supports Windows Script, such as Internet Explorer, Active Server Pages,...
in the context of web servers running the ASP
Active Server Pages
Active Server Pages , also known as Classic ASP or ASP Classic, was Microsoft's first server-side script engine for dynamically-generated Web pages. Initially released as an add-on to Internet Information Services via the Windows NT 4.0 Option Pack Active Server Pages (ASP), also known as Classic...
protocol. Subsequently Apache::ASP was created for the Apache
Apache HTTP Server
The Apache HTTP Server, commonly referred to as Apache , is web server software notable for playing a key role in the initial growth of the World Wide Web. In 2009 it became the first web server software to surpass the 100 million website milestone...
web server, which allows for coding with only Perl
Perl
Perl is a high-level, general-purpose, interpreted, dynamic programming language. Perl was originally developed by Larry Wall in 1987 as a general-purpose Unix scripting language to make report processing easier. Since then, it has undergone many changes and revisions and become widely popular...
, but neither VBScript nor JScript. PerlScript can also be used to write Windows Script Host
Windows Script Host
The Microsoft Windows Script Host is an automation technology for Microsoft Windows operating systems that provides scripting capabilities comparable to batch files, but with a greater range of supported features...
-based programs, similar to VBScript
VBScript
VBScript is an Active Scripting language developed by Microsoft that is modeled on Visual Basic. It is designed as a “lightweight” language with a fast interpreter for use in a wide variety of Microsoft environments...
.
Standalone PerlScripts can be executed if they are created with the file extension .pls, in which case they do not require enclosing XML
XML
Extensible Markup Language is a set of rules for encoding documents in machine-readable form. It is defined in the XML 1.0 Specification produced by the W3C, and several other related specifications, all gratis open standards....
, e.g.
.pls files do not gain access to drag and drop WSH
Windows Script Host
The Microsoft Windows Script Host is an automation technology for Microsoft Windows operating systems that provides scripting capabilities comparable to batch files, but with a greater range of supported features...
functionality.
PerlScripts which have the extension wsf require XML
XML
Extensible Markup Language is a set of rules for encoding documents in machine-readable form. It is defined in the XML 1.0 Specification produced by the W3C, and several other related specifications, all gratis open standards....
tags which specify the job id and script language, e.g.
wsf PerlScripts gain access to WSH
Windows Script Host
The Microsoft Windows Script Host is an automation technology for Microsoft Windows operating systems that provides scripting capabilities comparable to batch files, but with a greater range of supported features...
drag and drop functionality, similarly to Perl Droplets in the now-obsolete MacPerl.
Most WSH
Windows Script Host
The Microsoft Windows Script Host is an automation technology for Microsoft Windows operating systems that provides scripting capabilities comparable to batch files, but with a greater range of supported features...
objects are available via the implicitly created $WScript object.
External links
- Introduction to PerlScript
- PerlScript FAQ at ActiveState
- Apache::ASP Module