No, no, no! Perl is nearly exactly like C in this regard. "\n" is always a single character. When it gets written to a non-binmode file under Win32, it gets turned into "\r\n". When it gets written to a (defaultly configured) device under Unix, it also gets turned into "\r\n" (but people don't worry much about that because you can't read the results back in).
- tye (but my friends call me "Tye")In reply to (tye)Re: ActivePerl 5.6.1 Win32 munging CR/LFs
by tye
in thread ActivePerl 5.6.1 Win32 munging CR/LFs
by luma
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |