in reply to Windows and UNIX end of line characters

I think you're looking for an incorrect ASCII code. According to the ASCII table, you'll want to be looking for ASCII 13 (carriage return) and ASCII 10 (line feed).

Two quick questions:

If the answer is yes to both, then I think your code is working fine.

  • Comment on Re: Windows and UNIX end of line characters

Replies are listed 'Best First'.
Re^2: Windows and UNIX end of line characters
by merrymonk (Hermit) on Aug 10, 2010 at 19:19 UTC
    I am not absolutely sorue about the format. I simply used a text editor and write some lines.
    I definietley did not see any ASCII 13 being shown.
Re^2: Windows and UNIX end of line characters
by merrymonk (Hermit) on Aug 11, 2010 at 11:14 UTC
    Now I used binmode I saw both 10 and 13 for an MSDOS file.
    Therefore you are quite correct about my searching for the worng things!