|
|
|
Clear questions and runnable code get the best and fastest answer |
|
| PerlMonks |
Comment on |
| ( #3333=superdoc: print w/ replies, xml ) | Need Help?? |
|
In windows (and other CRLF platforms), not only can $/ be changed, but the meaning of \n can too.
There are two types of input streams, on windows... Text, and binary (ftp suffers from this atrocity too...). if you open a file it's normally considered a text file, and printing "\n" into it will result in a CRLF. However, if you binmode FILEHANDLE, then printing "\n" will result in LF, and "\r" will result in CR. Scary, huh?
-nuffin zz zZ Z Z #!perl In reply to Re: 3 questions... 2 about newlines, and one on how to be NICE
by nothingmuch
|
|