如何找出Perl安装了哪些核心模块

Perl 带有一组核心模块。

Perl 核心模块默认安装。

例如:

  • Env
  • File::Spec
  • File::Basename
  • Time::localtime

如何找出 perl 安装中包含哪些核心模块?

  • 首先,找出本地的 Perl 安装版本:
$perl -v
This is perl, v5.10.0 built for darwin-thread-multi-2level
(with 2 registered patches, see perl -V for more detail)
Copyright 1987-2007, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
  • 然后,查看 corelist 中可用的 Perl 版本列表:
$corelist -v
Module::CoreList has info on the following perl versions:
...
v5.13.4
v5.13.5
v5.13.6
v5.13.7
v5.13.8
v5.13.9
  • 以下是列出安装了哪些核心模块的方法:
corelist -v v5.10.0 | less

命令“corelist”是 Perl 核心模块的一部分。

日期:2020-06-02 22:16:01 来源:oir作者:oir