ActivePerl
DeveloperActiveState
Stable release
5.28.1[1] / May 30, 2019; 7 years ago (2019-05-30)
Websitewww.activestate.com/platform/supported-languages/perl/

ActivePerl is a distribution of Perl from ActiveState (formerly part of Sophos) for Windows, macOS, Linux, Solaris, AIX and HP-UX.

A few main editions are available, including: Community (free, for development use only), and several paid tiers up to Enterprise that includes support for OEM licensing. It includes a version of the Perl package manager (PPM) for installing packages from CPAN, etc.

The Windows version includes an Active Scripting component for Windows Script Host (WSH) called PerlScript and an ISAPI module for embedding within Internet Information Services (IIS).

PerlScript

edit

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.

use strict;
our $WScript;
$WScript->Echo("Hello, world!");

.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.

<Job ID="DropFiles">
<script language="PerlScript">
    use strict;
    our $WScript;
    $WScript->Echo("Displaying names of dropped files");
    my $arg = $WScript->{Arguments};
    my $countArgs = $arg->{Count};
    for (my $i=0; $i<$countArgs; $i++)
    {
        $WScript->Echo($arg->Item($i));
    }
</script>
</Job>

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.

See also

edit

References

edit
  1. ^ "ActivePerl 5.28 Documentation". docs.activestate.com.
edit

📚 Artikel Terkait di Wikipedia

Strawberry Perl

distributions (such as its primary rival, the freely available but closed source ActivePerl distribution released by ActiveState) to provide such development tools

Perl package manager

compilers necessary to build some Perl modules. Popular ActiveState's ActivePerl distribution comes with PPM included, other distributions can use PPM

ActiveX

used in Windows to bridge scripting engines like JScript, VBScript or ActivePerl and hosting applications like Internet Explorer, Active Server Pages,

Command-line interface

along with a Perl interpreter (Services for UNIX contains ActiveState ActivePerl in later versions and Interix for versions 1 and 2 and a shell compiled

Perl

modules that are not part of the core Perl distribution.[citation needed] ActivePerl is a closed-source distribution from ActiveState that has regular releases

ActiveState

served Global Key people Abby Kearns (CEO) Products ActiveState Platform, ActivePerl, ActivePython, ActiveTcl, Komodo IDE Number of employees >60 Website activestate

Sha1sum

calculate any of SHA-1, 224, 256, 384, 512 hashes. It is part of the ActivePerl distribution. sha3sum is a similarly named program that calculates SHA-3

Take Command Console

Scripting engines such as VBScript and JScript as well as PerlScript (via ActivePerl), TclScript (via ActiveTcl), PythonScript (via ActivePython), and the