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

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

问题描述

除了尝试

perldoc <module name>

对于任何我喜欢的 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 常见问题解答中得到了解答,可以通过 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.

您还可以找到 FAQ 条目 "如何查找系统上安装了哪些模块?" 在 perlfaq3 中.您可以通过查看 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天全站免登陆