【发布时间】:2011-02-23 08:50:51
【问题描述】:
我使用 cpan 安装了“Statistics::Descriptive”模块,然后测试示例:
use Statistics::Descriptive;
$stat = new Statistics::Descriptive;
$stat->AddData(1,2,3,4);
但它显示错误:Can't locate object method "new" via package "Statistics::Descriptive" at ... 我在 Linux Ubuntu 中使用 Perl 版本 5.10.1 和 cpan 告诉我的最新 Statistics::Descriptive 执行此操作。
我在 windows 上使用 activestate perl 进行了尝试,它可以工作。
您知道为什么我在 Linux 中运行时出现此错误吗?谢谢。
【问题讨论】:
标签: perl perl-module