in reply to Re: Sending XML data is simple right?
in thread Sending XML data is simple right?

This would cause the sent data to look like this

<?xml version="1.0"?> <root> <othertag>foo</othertag> </root>
The elements of the @data array do contain the newlines already.

If you want to merge the array into a single string you should use join( '', @data)