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.