in reply to Appending to variable with a switch statement?
$responseXML .= sloven('xml') for keys %A; [download]
$responseXML .= ( sloven('xml') x scalar keys %A); [download]