如何在perl脚本中使用XPath.pm?

时间:2013-12-31 11:09:40

标签: perl xpath

我已经按照以下链接处理了我面临的问题。

http://stackoverflow.com/questions/11192967/using-xpath-with-perl

真的我不知道怎么用。请以正确的方式指导我。

问题:

    Can't locate XML/XPathEngine.pm in @INC (@INC contains: /perl/site/lib C:/Dwimpe
rl/perl/site/lib C:/Dwimperl/perl/vendor/lib C:/Dwimperl/perl/lib .) at C:/Dwimp
erl/perl/site/lib/XPath.pm line 103.
BEGIN failed--compilation aborted at C:/Dwimperl/perl/site/lib/XPath.pm line 103
.
Compilation failed in require at Multi_instance_run1.pl line 9.
BEGIN failed--compilation aborted at Multi_instance_run1.pl line 9.

我遵循以下步骤

 - In perl script, used like require XPath;
 - After that executed command cpan XML::XPath .
 -I've copied following files in the path C:\Dwimperl\perl\site\lib
              XPath.pm
              XPathEngine.pm

我错过了什么?我在哪里弄错了?如何使用XPath.pm?如何将它包含在perl脚本中?

1 个答案:

答案 0 :(得分:0)

尝试将XPathEngine放到C:\ Dwimperl \ perl \ site \ lib \ XML文件夹