Installing Perl on Unix/Linux

A good setup for Perl on Unix/Linux based systems:

Install Perl on Unix/Linux
  • Install a compiler, such as gcc through your system package management (e.g. apt, yum).
  • Open a Terminal and copy & paste the command below into it (then press the 'return' key).
    curl -L | bash

If you are interest in the details of the setup above..

  • To build and install Perl and many of the thousands of useful Perl modules you need to have a compiler.
  • To interact with the command line and run Perl commands, a terminal application is needed.
  • The Perlbrew website lists many of it's advantages. We recommend it here because it separates your installation from the system Perl, this makes upgrading your OS less likely to cause issues with your own Perl setup. It also means you can use a newer Perl than the default one which comes with your OS.
  • App-cpanminus provides the cpanm tool, which makes installing modules very simple to do.