Home Download Buy Blog Forum Support

[BUG] Perl syntax special characters

[BUG] Perl syntax special characters

Postby ChadH on Thu Sep 22, 2011 2:53 pm

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:
Code: Select all
$line=~ s/^M//g;

Code after copied and pasted into SublimeText2:
Code: Select all
$line=~ s/
Posts: 1
Joined: Thu Sep 22, 2011 2:46 pm

Return to Technical Support

Who is online

Users browsing this forum: Yahoo [Bot] and 19 guests