No, in DOS, "\n" is "\012". It only becomes "\015\012" when written to a file (and then only if that file handle is not in binmode -- and this is done by the C RTL, not by Perl). Even under Unix, "\n" is turned into "\015\012" when written to many devices (just not when written to files).
- tye (but my friends call me "Tye")In reply to (tye)Re: How do I remove carriage returns from scalars?
by tye
in thread How do I remove carriage returns from scalars?
by bazfaz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |