in reply to Parsing large files

Unless the file is indexed, I don't think there's a way to avoid reading in the whole thing line by line. But, if you're using regexes inside the while loop, you might be able to speed up your parsing by pre-compiling them using qr.