gpt4 book ai didi

perl - 如何获取系统中可用的 "standard"perl模块的列表?

转载 作者:行者123 更新时间:2023-12-02 10:14:15 25 4
gpt4 key购买 nike

perlmodlib(1)中有一句话:

It's possible that not all modules listed below are installed on your system. For example, the GDBM_File module will not be installed if you don't have the gdbm library.

如何获取系统中安装的标准模块的实际列表?

最佳答案

cpan 命令可以做到这一点:

% cpan -a

我写了App::Module::Lister来做这项工作。虽然它是一个模块,但它也是一个程序,当你像程序一样运行它时,它可以做你想做的事情:

% perl `perldoc -l App::Module::Lister`

其他几个 Stackoverflow 问题针对特定模块回答了这个问题,包括:

但是,对于您的特定问题,您真的关心什么在实现您的 DBM 功能吗?您对此有什么疑问吗?

关于perl - 如何获取系统中可用的 "standard"perl模块的列表?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11636691/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com