in reply to Re^2: sub that finds ancestor elementsin thread sub that finds ancestor elements
Replace this:
$node->findnodes("ancestor::*")->map(sub { $coolNodeName->($_) }) [download]
With this:
(map { $coolNodeName->($_) } $node->findnodes("ancestor::*")) [download]
... and you should be able to use XML::LibXML 1.70.