I copied Perl code from a file on a SunOS 5.10 box and pasted into SublimeText2. The syntax is set to Perl and it interpreted special character ^M (not ^M in plain text but while in Solaris, type: CRTL-V then M) as a new line.
How can I make SublimeText2 keep this special character instead of dropping to a new line?
Code in Solaris using vi:
$line=~ s/^M//g;
Code after copied and pasted into SublimeText2:
$line=~ s/
//g;