in reply to getting text to line break in an email

Could you post an example?

I think you are changing breaks by '\n' instead "\n"
Note that there is a difference (The interpolation)
but an example could help to see what is wrong
Example 1:
$text = "How are you"; $break ='\n'; $text =~ s/\s/$break/g; print $text;
will print:
How\nare\nyou
while
Example 2:
$text = "How are you"; $break ="\n"; $text =~ s/\s/$break/g; print $text;
will print:
How are you

Hope this helps