in reply to Appending to variable with a switch statement?

Since you don't care about what's in %A, you don't really need a case statement.

$responseXML .= sloven('xml') for keys %A;
or even
$responseXML .= ( sloven('xml') x scalar keys %A);
if sloven('xml') has no side effects.