in reply to hashref with(out) arrays
You appear to be using XML::Simple (or something with the same interface). You are discouraged from using XML::Simple (by its own documentation) because of its awful interface. See Why is XML::Simple “Discouraged”? for more information.
By using a better parser (such as XML::LibXML), the problem goes away:
my @results = $xpc->findnodes('result/value', $item_node);
|
|---|