in reply to Reading from large files

Well, 420KB is not really such a large file. Perl should have no trouble at all holding that much data in memory (unless you are working on a really old, dinky little machine). As for the code you posted in your update: It would also help to show a little bit of input data -- or at least the part that you say gets "cut off", and give a little more detail about what is meant, exactly, by "It gets cut off". What / how much is missing from the output?