in reply to Re: Help needed in reading a very large file line by line
in thread Help needed in reading a very large file line by line

Opening the big file with the open statement and then using while(<FILEHANDLE>) gives an Out of Memory! error.
  • Comment on Re^2: Help needed in reading a very large file line by line

Replies are listed 'Best First'.
Re^3: Help needed in reading a very large file line by line
by Anonymous Monk on Feb 28, 2012 at 11:08 UTC

    So the file doesn't contain lines?

Re^3: Help needed in reading a very large file line by line
by ddragosa (Acolyte) on Mar 20, 2015 at 08:25 UTC
    It is giving "Out of memory" because in your environment (I suppose it is a UNIX based one) your settings for "ulimit -a" at "data(kbytes)" is less than the file's size; Try modifying the data parameter with a value larger than the file you are processing. If you can't do that, use Tie::File. Slower but not a memory hog user.