Replace this:
$node->findnodes("ancestor::*")->map(sub { $coolNodeName->($_) })
With this:
(map { $coolNodeName->($_) } $node->findnodes("ancestor::*"))
... and you should be able to use XML::LibXML 1.70.
In reply to Re^4: sub that finds ancestor elements
by tobyink
in thread sub that finds ancestor elements
by jccunning
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |