Perl will try to hide the line-ending issue from you; on Win32, it does this by silently translating "\n" to "\r\n" when writingAnd so, when you say \r\n, Perl translates the \n to \r\n, and you end up with \r\r\n, which is what's confusing your editor.
In reply to Re^4: CRLF and Windows XP SP2
by sgifford
in thread CRLF and Windows XP SP2
by slloyd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |