I remember a thread here recently pointing out that \n is not guaranteed to be a line feed, and that the suggested approach approach was to use \x0a and \x0d because you can be sure of their meanings.
I vaguely remember having that problem way back when I was a C programmer.
In reply to Re^3: Detect line endings with CGI.pm upload
by gwadej
in thread Detect line endings with CGI.pm upload
by apu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |