XML::LibXML::Node::findnodes
returns a NodeList
object in scalar context, but a list of nodes in list context. The NodeList
does not have a removeChildNodes
method. Suggested solution: Use a list on the left side of =
to force list context.
my ($new_deployment_node) = $manifest_doc->findnodes(...);