【发布时间】:2014-09-10 15:18:13
【问题描述】:
我正在尝试使用 CPAN 模块:Math::Vector::Real::Neighbors
我看到以下错误消息:
无法通过包“Math::Vector::Real”在 /usr/local/share/perl/5.14.2/Math/Vector/Real/Neighbors.pm 第 12 行找到对象方法“box”。
所以,我进入包裹看到了这个:my ($bottom, $top) = Math::Vector::Real->box(@_);
接下来,我进入Real.pm 包:/usr/local/share/perl/5.14.2/Math/Vector/Real.pm
我看到里面有box子例程:sub box {...
知道为什么会出现错误吗?
【问题讨论】:
-
在您的脚本中在此之前发生了什么——您是否创建了 Math::Vector::Real 对象?
-
在
use strict; use warnings;之后添加use Math::Vector::Real; -
@jm666 这回答了问题...我使用的是 synopsys 页面中的示例...我的错误...对不起
-
@jm666 你能把它贴出来让我接受吗
-
我警告过外星人already posted 作为答案。