perl - 为什么我会在 @INC 中收到此模块错误 : "Can' t locate Error. pm?

标签 perl module

我尝试运行:

perl -e "use Error;" 

来自 Windows 7 中的 cmd。(系统上安装了事件的 perl 5.12),我收到了错误

Can't locate Error.pm in @INC (@INC contains: C:/Perl64/site/lib C:/Perl64/lib )



我手动搜索发现Error.pmC:/Perl64/lib/CPANPLUS .

有谁知道这里会发生什么?

最佳答案

您必须安装模块 Error可以在 CPAN 上找到。
但请注意此警告:

Using the "Error" module is no longer recommended due to the black-magical nature of its syntactic sugar, which often tends to break. Its maintainers have stopped actively writing code that uses it, and discourage people from doing so. See the "SEE ALSO" section below for better recommendations.

关于perl - 为什么我会在 @INC 中收到此模块错误 : "Can' t locate Error. pm?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3303641/

相关文章:

perl - Perl : re-loading hash values possible? 中的快速查找

arrays - 如何从 Perl 散列中删除空数组/引用?

perl - 我如何告诉 Module::Build 不要将 lib/perl5 子目录添加到安装路径?

linux - 内核模块中的 EXPORT_SYMBOL | insmod 期间的 undefined symbol

javascript - 传递 Node 模块的上下文

perl - 如何在现有文件的中间插入一行

mysql - 通过脚本在 MySQL 中仅添加新记录

perl - Perl 中 IO::Pipe 构造函数的参数是什么?

javascript - 在多个模块中需要(相同的实例)socket.io

go - 如何通过从另一个模块 B 调用模块的 A 函数来读取位于模块 A 中的静态文件?