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;
[download]
This removes any sequence of carriage returns or newlines, replacing them with a single space.
Comment on
Re: Re: DOS characters
Download
Code
In Section
Seekers of Perl Wisdom