What modules are distributed with Perl?

前端 未结 8 1509
误落风尘
误落风尘 2021-02-13 20:00

How do I know what modules are distributed with Perl?

My first guess is that the core modules listed here are always included, though I cannot find this stated explicitl

8条回答
  •  执念已碎
    2021-02-13 20:49

    For a quick way to see the modules and versions that you have installed, use the cpan tool to create an autobundle:

     cpan -a
    

    ExtUtils::Installed can help you if you need something more sophisticated.

    There used to be the idea of a "standard library", but it doesn't really exist in reality. Module::CoreList tells you what is in the "standard library", but many vendors install additional modules and some even remove or update modules. Additionally, distributions such as Strawberry Perl and ActivePerl come with many bonus modules.

    Also, you don't need root to install modules. You only need root to install modules where root can install modules. perlfaq8 gives you all the details for installing modules wherever you like. I recommend that you install all modules outside of the distributed @INC directories so you keep your distributed Perl clean.

    Good luck,

提交回复
热议问题