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).
By rote learning.
Via Genetic memory.
It's provided by my firmware.
I just remember them.
Thirty days hath September
My computer gets it right, usually.
I just ask someone else.
Someone punches me on the first of the month.
Results (386 votes),