Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I have been making good use of XML::LibXML and often have to make use of the get_node function of XML::LibXML::NodeList
I understand that because of xpath it uses a 1 based array rather than a 0 based array. But if I do make the mistake of deriving the 0th value (I am only human :)), then rather than getting an undef or similar I seem to get the -1th value
I can find no mention of this in cpan. Any ideas why this is?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: XML::LibXML::NodeList get_node
by tobyink (Canon) on Apr 09, 2014 at 11:21 UTC |