如何获得已安装的CPAN模块的列表? [英] How do I get a list of installed CPAN modules?
问题描述
除了尝试
perldoc <module name>
对于任何需要花哨的CPAN模块或通过文件系统并查看目录的CPAN模块,我都不知道我们已经安装了哪些模块.
individually for any CPAN module that takes my fancy or going through the file system and looking at the directories I have no idea what modules we have installed.
获取安装的每个CPAN模块的大列表的最简单方法是什么?通过命令行或其他方式.
What's the easiest way to just get a big list of every CPAN module installed? From the command line or otherwise.
推荐答案
这在Perl FAQ中得到了解答,可以通过perldoc -q installed
迅速找到答案.简而言之,可以归结为使用ExtUtils::Installed
或File::Find
,这两个线程的变体都已在本线程中进行了介绍.
This is answered in the Perl FAQ, the answer which can be quickly found with perldoc -q installed
. In short, it comes down to using ExtUtils::Installed
or using File::Find
, variants of both of which have been covered previously in this thread.
You can also find the FAQ entry "How do I find which modules are installed on my system?" in perlfaq3. You can see a list of all FAQ answers by looking in perlfaq
这篇关于如何获得已安装的CPAN模块的列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!