in reply to help reading from large file needed
Not advocating that this is any better than previous suggestions, but you can check out Tie::File, which ties a file to an array where each element corresponds to a line in the file.