How can I tell if a Perl module is core or part of the standard install?

前端 未结 7 716
猫巷女王i
猫巷女王i 2020-12-13 06:04

How can I check if a Perl module is part of the core - i.e. it is part of the standard installation?

I\'m looking for:

  • a command-line command:
7条回答
  •  心在旅途
    2020-12-13 06:32

    There really is no such thing as "core" any more. There used to be a standard Perl distribution, but a lot of people don't have a standard Perl distribution. Operating system distributions modify it by either adding or removing modules, changing modules, and so on. You can't rely on the standard distribution being actually standard. Some Linux distributions don't even include the Perl documentation as part of the base Perl installation.

    You mention that you can't use Module::CoreList because it isn't core, but if you can create files, you can install the module. You can even pretend that you wrote it yourself.

提交回复
热议问题