CentOS下安装perl编程语言教程

CentOS下安装perl编程语言教程

时间:2015-07-08 19:29来源:网络整理 作者:KKWL 点击:
[root@ithomer ~]# perlbrew list * /usr/bin/perl (5.10.1) [root@ithomer ~]# perlbrew available perl-5.21.6 perl-5.20.1 perl-5.18.4 perl-5.16.3 perl-5.14.4 perl-5.12.5 perl-5.10.1 perl-5.8.9 perl-5.6.2 perl5.005_04 perl5.004_05 perl5.003_07 [


[root@ithomer ~]# perlbrew list
* /usr/bin/perl (5.10.1)
[root@ithomer ~]# perlbrew available
perl-5.21.6
perl-5.20.1
perl-5.18.4
perl-5.16.3
perl-5.14.4
perl-5.12.5
perl-5.10.1
perl-5.8.9
perl-5.6.2
perl5.005_04
perl5.004_05
perl5.003_07
[root@ithomer ~]# perlbrew install perl-5.20.1
Fetching perl-5.20.1 as /root/perl5/perlbrew/dists/perl-5.20.1.tar.gz
[root@ithomer ~]# perlbrew switch perl-5.20.1
[root@ithomer ~]# perlbrew list
* perl-5.20.1
/usr/bin/perl (5.10.1)
[root@ithomer ~]# perl -v</p> <p>This is perl 5, version 20, subversion 1 (v5.20.1) built for x86_64-linux</p> <p>Copyright 1987-2014, Larry Wall</p> <p>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.</p> <p>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 , the Perl Home Page.</p> <p>[root@ithomer ~]# perlbrew off
Fetching perl-5.20.1 as /root/perl5/perlbrew/dists/perl-5.20.1.tar.gz
[root@ithomer ~]# which perl
/root/perl5/perlbrew/perls/perl-5.20.1/bin/perl

------分隔线----------------------------