http://www.perlmonks.org?node_id=511137


in reply to Notepad: I'm seeing squares.

You've got a bad assumption somewhere. "\r\n" on a unix-y perl will positively give you valid DOS carriage control. Open your file with a hex editor and you'll see something other than hex "0d0a" there for sure. That's the best way to shoot your problem.

Replies are listed 'Best First'.
Re^2: Notepad: I'm seeing squares.
by emilford (Friar) on Nov 23, 2005 at 15:55 UTC
    I viewed the file and the double squares do equate to 0D0A. That's what it's supposed to be right?
      Yes. x'0D0A' is valid DOS carriage control. But notepad shouldn't be putting up boxes for it. Any chance you can post your text file somewhere so others can test it? Or, maybe you can reproduce the problem w/ non-sensitive data.
        No. I see the squares in the hex viewer too. Is that normal? It does interpret them as x0d0a, but they are squares, nonetheless.