CentOS install Perl environment

1, the installation of Perl environment
yum install perl*
This command basically got to install Perl modules.
yum install cpan
CPAN this needless to say, we all know.


If your version of Perl module requirements are relatively high, hope is the new version of follow the installation:
yum install perl
yum install cpan


What needs to be compiled with CPAN installation directly after.


2, download and install the latest Perl versions


First of all, download the latest Perl source packages:


[root@akinlau /]# wget http://www.cpan.org/src/5.0/perl-5.16.1.tar.gz


Extract the source packages
[root@akinlau /]# tar -xzf perl-5.16.1.tar.gz


Compiled and installed, the directory can be customized


[root@akinlau /]# cd perl-5.16.1
[root@akinlau perl-5.16.1]# ./Configure -des -Dprefix=/usr/local/perl


[root@akinlau perl-5.16.1]# make
[root@akinlau perl-5.16.1]# make test
[root@akinlau perl-5.16.1]# make install


If the system was previously installed an older version of Perl, replacing the original version.
[root@akinlau perl-5.16.1]# mv /usr/bin/perl /usr/bin/perl.bak
[root@akinlau perl-5.16.1]# ln -s /usr/local/perl/bin/perl /usr/bin/perl


Then see if the latest version


[root@akinlau perl-5.16.1]# perl -v


This is perl 5, version 16, subversion 1 (v5.16.1) built for x86_64-linux


Copyright 1987-2012, 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.


If you see the above information proves that the installation was successfu