in reply to Re: Problems with binary data in text documents
in thread Problems with binary data in text documents

perldoc -f binmode ...reading.... I am now! Thanks.
  • Comment on Re^2: Problems with binary data in text documents

Replies are listed 'Best First'.
Re^3: Problems with binary data in text documents
by ikegami (Patriarch) on Nov 22, 2004 at 21:45 UTC

    Some relevant details...

    If DOS/Windows encounters chr(26) in a text file, it considers that the end of the text file. binmode does not treat chr(26) specially. However, \r\n are not converted to \n in binmode. You may want to set $/ to "\015\012".