找到一篇对Perl的CPAN镜像使用管理比较详细的文章,以下来自于:http://www.361way.com/change-cpan-default-mirror/5094.html

安装perl下的很多模块文件时,比较快捷的方法是使用cpan工具。默认cpan shell 使用的是cpan.org的源,在国内使用的话速度会非常的慢。如果更换为国内的如阿里或网易等公司的源的话,速度会明显提高。修改方法如下:

1、执行cpan命令确认存在该命令

如果cpan执行后提示找到该命令,可以通过yum -y install perl-CPAN 或手动安装该模块。

[root@localhost CPAN]# cpan
CPAN is the world-wide archive of perl resources. It consists of about
300 sites that all replicate the same contents around the globe. Many
countries have at least one CPAN site already. The resources found on
CPAN are easily accessible with the CPAN.pm module. If you want to use
CPAN.pm, lots of things have to be