This section describes how to verify Perl installation on Linux systems. The 'perl -v' command returns which version of Perl is installed on the Linux system.
If you are running a Linux system, Perl is already installed on the system.
No need to do any extra installation work.
Here is what I did to verify the Perl installation on the Linux server of my Internet service provider:
> which perl
/usr/local/bin/perl
> perl -v
This is perl, v5.8.8 built for i486-linux-gnu-thread-multi
Copyright 1987-2006, Larry Wall
Perl may be copied only under the terms of either the Artistic License
or the GNU General Public License, which may be found in the Perl 5
source kit.
Complete documentation for Perl, including FAQ lists, should be found
on this system using "man perl" or "perldoc perl". If you have access
to the Internet, point your browser at http://www.perl.org/, the Perl
Home Page.
>man perl
......
As you can see from the output, this Linux system has Perl 5.8.8 installed
and ready to use.
Even on older versions of Linux systems, Perl was included in Linux distribution packages
and installed automatically. I had an old PC running a Linux 2.0.30 system,
which had Perl installed:
>which perl
/usr/bin/perl
>perl -v
This is perl, version 5.004_03
Copyright 1987-1997, Larry Wall
Perl may be copied only under the terms of either the Artistic License
or the GNU General Public License, which may be found in the Perl 5.0
source kit.