cpanm 命令的安装及使用
001、安装
(base) [root@pc1 test01]# yum install perl-App-cpanminus.noarch ## 安装; 系统为centos7系统

002、测试安装效果
(base) [root@pc1 test01]# cpanm Usage: cpanm [options] Module [...] Try `cpanm --help` or `man cpanm` for more options.

。
003、使用,安装模块测试
a、
(base) [root@pc1 test01]# perldoc MongoDB ## 提示MongoDB模块未安装 No documentation found for "MongoDB".

b、
(base) [root@pc1 test01]# cpanm MongoDB ## 使用cpanm安装该模块

c、测试安装效果
(base) [root@pc1 test01]# perldoc MongoDB | head

。

浙公网安备 33010602011771号