Perl's module judgment and installation

Source: Internet
Author: User

First, determine whether the module has been installed: (reference:Http://cooloo.lofter.com/post/1906f2_5eabbe)

Perl " print\ "Module installed\n\" "

Second, how to install the module: (Reference:http://jingyan.baidu.com/article/e3c78d646c118d3c4c85f5c8.html)

1. Check if the CPAN package is installed:

#rpm-qa | grep Perl-cpan

2, if not installed, then install:

#Yuminstallperl-cpan*

3, after the installation is complete, you can install the corresponding module by CPAN. For example, I want to install the Archive::zip module:

#cpan Archive::zip

4. After the installation is complete, review the documentation:

#perldoc Archive::zip

The appropriate usage and description will be listed.

Perl's module judgment and installation

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.