Actually, another question.. the doc says that findnodes
"Returns a list of nodes found by $path, optionally in context $context. In scalar context returns an XML::XPath::NodeSet object."
I had taken that to mean that since I am invoking the method inside the braces for a foreach loop
foreach my $node ($tree->findnodes())It would return a list of nodes.. Isn't that a list contest? Why would it be a scalar context?
In reply to Re^2: XML::XPath Question
by TendulkarIsGod
in thread XML::XPath Question
by TendulkarIsGod
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |