in reply to Parsing a text file without newlines

Your line-endings are incorrect.

Either the file is generated incorrectly or you uploaded it to a different OS using Binary-transfer mode (which you shouldn't do since it's a Text-file, and Text is ASCII).

My guess is that your data has line ending \x0A (or maybe \x0D) and that $/ is set to the \xOD (or \x0A)...

  • Comment on Re: Parsing a text file without newlines