Installing Perl

Most likely, your system administrator is responsible for installing and upgrading Perl. But if you are the system administrator, or you want to install Perl on your own system, sooner or later you will find yourself installing a new version of Perl.

Tip

If you run Perl and plan on upgrading to the latest distribution, be aware that pre-5.005 Perl extensions are not compatible with 5.6 and later. This means that you must rebuild and reinstall any dynamically loaded extensions you built under Perl distributions earlier than 5.005. If you’re building under a Unix variant that’s running Perl 5.005, choose the Configure option for 5.005 compatibility.

Specific installation instructions come in the README and INSTALL files of the Perl distribution kit. If you don’t already have the Perl distribution, you can download it from CPAN—the latest Unix distribution is in stable.tar.gz. The information in this section is an overview of the installation process. The gory details are in the INSTALL file, which you should look at before starting, especially if you haven’t done an installation before. Note that operating systems other than Unix may have special instructions; if so, follow those instructions instead of what’s in this section or in INSTALL. Look for a file named README.xxx, in which xxx represents your operating-system type.

In addition to Perl itself, the standard distribution includes a set of core modules that are automatically installed with Perl. See Section 2.4 ...

Get Perl in a Nutshell, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.