Module installation in Perl

Source: Internet
Author: User

Psl:perlstandard Library, which focuses on the built-in functions of Perl

Perl modules have built-in modules and third-party modules.

Perldoc perlocal View built-in modules

Perldoc module-name View Module Help information

Perldoc-m module-name View Module source code

To manually install the third-party module on the CPAN:

Perl makefile.pl

Perl makefile.pl Prefix=yourpath #安装到指定目录

Make

Make Test

Make install

For modules that require a build:

Perl build.pl

./build

./build Test

./build Install

Automatic installation of CPAN third-party modules:

PERL-MCPAN-E Shell #默认设置cpan, enter CPAN

sudo cpan #进入cpan的shell

Cpan>help #查看cpan帮助

Cpan>m #查看cpan所有模块列表

Cpan>install Module-name #安装模块

Cpam>quit #退出cpan

Use the CPAN command:

Cpan-i Module-name #安装模块

Cpan-if Module-name #强行安装模块

Cpan-l #列出安装的模块

Cpan-u #升级所有安装的模块

Module installation in Perl

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.