At 17:58 -0500 02.05.2001, Fernando Trias wrote:
>Not to beat a dead horse any more than necessary, but I want to make one
>more point in case anyone is going to use this info. This topic has caused
>me much anxiety in the past.
>
>When you write "\012", it is the same as "\n".
Only on some platforms (well, almost all platforms :-).
>So in Windows if you don't
>use binmode, when outputting "\015\012" you will write out a <cr><cr><lf>
>(the \012 will be translated).
Right. That is why when on a native files system, you should always use "\n".
>If you use binmode, it works as expected.
>Binmode has no effect whatsoever on Unix,
It has no effect on any platform, except those that need it (DOS-ish
platforms).
--
Chris Nandor [EMAIL PROTECTED] http://pudge.net/
Open Source Development Network [EMAIL PROTECTED] http://osdn.com/