in reply to Re: DOS characters
in thread DOS characters

Transliteration would be more efficient than a regexp for this kind of operation:
$text_area =~ tr/\r\n/ /s;
This removes any sequence of carriage returns or newlines, replacing them with a single space.