Bob Showalter wrote:
> No. A "\n" in your program is an ASCII linefeed (10) character
> on either platform.

So, \n equals a LF, thank you.


> 
> What happens on Windows is that when you are reading a file,
> each CR/LF pair from the file is changed to a single LF char
> before the data is returned to you. On output, the situation
> is reversed (LF is translated to CR/LF pair). On UNIX, no
> such translation is done.
> 
> On Windows, if you don't want this translation done, you need
> to call binmode().
> 
> All the poop can be found at:
> 
>    perldoc -f binmode

CR/LF has never been translated to a LF while reading a file
for me.  If that were true, the whole situation would be
transparent and I would have never asked the question it seems.
I didn't see anything about this "translating" in the docs
on the binmode function.

Bompa

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to