in reply to Problems accepting client data

You may want to set $OUTPUT_AUTOFLUSH (If use English), or $| =1;

Just a guess - if the XML does not contain Line Feeds, the output to the console will stay in the buffer, unless $| is non-zero.

Offense, like beauty, is in the eye of the beholder, and a fantasy.
By guaranteeing freedom of expression, the First Amendment also guarntees offense.