我正在尝试运行我创建的 Perl 文件。
use XML::XPath;
use XML::XPath::XMLParser;
# create an object to parse the file and field XPath queries
my $xpath = XML::XPath->new( filename => shift @ARGV );
# apply the path from the command line and get back a list matches
my $nodeset = $xpath->find( shift @ARGV );
# print each node in the list
foreach my $node ( $nodeset->get_nodelist ) {
print XML::XPath::XMLParser::as_string( $node ) . "\n";
}
当我运行时perl xmlfile.pl
出现此错误
"No path to find at /usr/lib/per5/site_perl/5.8.8/XML/XPath.pm line 65"