http://qs321.pair.com?node_id=339422


in reply to Re: How to inset "+" symbol in binary files ?
in thread How to inset "+" symbol in binary files ?

If you do it on Windows, you have to use binmode on the file handle.

- Tom

Replies are listed 'Best First'.
Re: Re: Re: How to inset "+" symbol in binary files ?
by amw1 (Friar) on Mar 24, 2004 at 15:09 UTC
    Not using windows for anything but games/shell windows to other systems and Office apps I've always been curious as to why this is the case. It seems odd to me that an OS would care what kind of file you are opening.
      Checkout the doc page for binmode. It has to do with conversion of newline characters.

      - Tom

Re: Re: Re: How to inset "+" symbol in binary files ?
by Anonymous Monk on Mar 25, 2004 at 06:48 UTC
    Always use binmode and you'll never get bit by this on any of the platforms it matters (windows is just one).