Installing Perl on Ubuntu

How to install Perl on Ubuntu. Install Perl using the apt command.

sudo apt install -y perl

Perl is often installed by default on Ubuntu, but if you don't have Perl installed on Ubuntu, install Perl.

If you can confirm the version of Perl, you have successfully installed Perl on Ubuntu.

perl -v

Perl module installation

It is not installed by default, but it is a Perl module installation that is highly needed.

Installing Perl on Ubuntu version 12 and below

The apt command was introduced from Ubuntu 14, so if you have Ubuntu version 12 or lower, apt-get.

sudo apt-get install -y perl

Installing Perl in the user environment

The Perl described on this page is the system Perl you want to install on your system.

Installing Perl in your environment is described below.

Associated Information