How to Install Perl

How to Install Perl


Installing Perl can be done on any OS and is useful for file processing programs, scripting, or running Perl programs.




Linux: should be already installed.

Windows: Download ActiveState Perl (free) from Click ‘Download Now’. Click the download link for your OS bitness (32-bit or 64-bit).

Once the installer is downloaded, install Perl with default settings.

When creating a Perl file, include:


at the top. This will be the first line of the file. This indicates where Perl is located on Linux. This is unnecessary on Windows, but can still be included if the same Perl file is being run on Linux. The Perl file should have the .pl file extension appended to the file name.