且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何从命令行检查我的系统上是否安装了 Perl 模块?

更新时间:2023-09-26 17:02:46

您可以通过以下方式检查模块的安装路径:

You can check for a module's installation path by:

perldoc -l XML::Simple

单行的问题在于,它不是递归遍历目录/子目录.因此,您只能获得实用的模块名称作为输出.

The problem with your one-liner is that, it is not recursively traversing directories/sub-directories. Hence, you get only pragmatic module names as output.