MacPerl used to be different, but I was told that is no longer the case. MacPerl was the only exception, so now "\n" is always "\x0A" and "\r" in always "\x0D".
But if you wanted to be sure, you'd use either
"\n" without binmode or
"\x0D\x0A" ("\015\012") with binmode.
In reply to Re^3: string replace with CRLF
by ikegami
in thread string replace with CRLF
by bobdole
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |