in reply to Reading a file with 8kB long lines

Is your data binary by any chance? Perhaps you need binmode?

Are the "lines", more properly, records exactly 8k? eg. 8192 bytes. If so, you might also want to look at setting $\ = \8192;, or using read.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."