in reply to Re^3: sub that finds ancestor elements
in thread sub that finds ancestor elements
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.
|
|---|