Perl Tutorial

 

Table of Contents

Adding Modules using the PPM

What is the Perl Package Manager?

One of the great strengths of Perl is the wealth of free modules that can be used to extend the core Perl distribution. ActivePerl includes a package manager, the PPM, that makes it easy to browse, download and update Perl modules from module repositories on the internet. These modules are added to the "core" Perl distribution installed on your system when you install ActivePerl.

Running the Perl Package Manager

In this case, we will install the Perl module called "Text::CSV_XS".

  1. Open a Command Prompt window (Windows) or shell window (Linux).
  2. Enter "ppm install Text::CSV_XS". PPM will connect with the default repository on the ASPN network, download the necessary files, and make a record of the installation of the new package.

Things to note about using PPM

  • "ppm" is the command that runs ActivePerl's Perl Package Manager. You can enter ppm at the command prompt, and then type "help" for a list of PPM commands.
  • PPM, by default, accesses the Perl Package repository stored on ASPN, the ActiveState Programmer Network. The ASPN repository is a "mirror" (that is, a copy), of CPAN, the Comprehensive Perl Archive Network.
  • More information about PPM is available on ASPN. PPM documentation is also included with your ActivePerl distribution.

Top Home Next