0

运行我的 perl 文件时出现以下错误

Can't locate HTML/TreeBuilder/XPath.pm in @INC (@INC contains: C:/Perl/lib C:/Pe rl/site/lib .) at display.pl line 4. BEGIN failed--compilation aborted at display.pl line 4.

HTML::TreeBuilder::XPath 模块(0.14) 已安装。当我运行命令时从命令行

 perl -e HTML::TreeBuilder::XPath it doesn't give any error.

当我从命令行 perldoc -l HTML::TreeBuilder::XPath 运行时,出现以下错误:

No documentation found for "HTML::TreeBuilder::XPath".

我的 perl 版本是 5.8.7

4

1 回答 1

1

首先交叉检查这个模块是否真的安装了?我认为它没有安装,从cpan.

于 2012-09-27T12:14:58.140 回答