【问题标题】:Perl ServerCommon module is missing in perl windows [closed]perl windows中缺少Perl ServerCommon模块[关闭]
【发布时间】:2015-12-06 14:26:41
【问题描述】:

我在 windows 上使用 Active perl 5.22 版,当我尝试执行一个程序时它说 serverCommon.pm is missing ,你需要安装 serverCommon 模块但我无法从互联网上找到同名的模块,我也对草莓 perl 进行了同样的尝试。

请有人帮忙,我来解决这个问题。

这是我的 perl 代码

use ServerCommon;

$buffer = <<_OUT
CN=""
Domain=""
OU=""
Organization=""
ID=""
_OUT
;



%args = ServerCommon::GenHashFromBuffer($buffer);



Search(%args); # this function is implemented by myself for searching 

提前致谢。

【问题讨论】:

  • 您在代码中使用了哪个模块?最好向您展示代码。
  • 你为什么使用ServerCommon?是你写的模块吗?你在处理别人的代码吗?如果是这样,您应该询问编写该代码的人。

标签: windows perl perl-module strawberry-perl activeperl


【解决方案1】:

首先,您会发现准确性在编程中很重要。在您的描述中,您将模块称为“serverCommon”,但在您的代码中它是“ServerCommon”。大小写的区别很重要。

大多数 Perl 模块分布在 CPAN 上。但它看起来像your missing module isn't there。其实Google can't find anything useful either.

因此,您的模块似乎必须在您的组织内部。或者,可能是您计算机上未安装的某些软件包的一部分。

你从哪里得到使用这个模块的程序?我最好的建议是回到给你这个代码的人那里,问他们你可以从哪里得到这个模块。

【讨论】:

    猜你喜欢
    • 2017-05-29
    • 2023-03-04
    • 1970-01-01
    • 2012-10-07
    • 1970-01-01
    • 1970-01-01
    • 2020-07-14
    • 2019-03-26
    • 2015-06-21
    相关资源
    最近更新 更多