如何获得已安装的CPAN模块的列表? [英] How do I get a list of installed CPAN modules?

查看:309
本文介绍了如何获得已安装的CPAN模块的列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

除了尝试

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::InstalledFile::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.

您还可以找到FAQ条目.您可以通过查看 perlfaq

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆