use Data::Dumper 'Dumper'; ... @array = XMLP::GetElementsByName($node, $path) print Dumper( \@array );