in reply to
XML lite unblessed reference
The selectNodes returns an array reference, not an blessed object:
my $nodes = $doc->selectNodes('/perldata/hello');
print ref($nodes), "\n";
'attributes' => bless( , 'XML::DOM::Lite::NodeList' ),
Thanks. I thought I was getting a list of Nodes, not an array.
Um, an array is a list of nodes, and you're supposed to be getting both (blessed array reference).
Results (303 votes),