in reply to Re^2: Parsing very big files GB
in thread Parsing very big files GB

Show us more of the code. Sounds like some restructuring is in order. In particular, anything that you "undef" ought to be inside the while loop so that it is cleaned up when it goes out of scope at the end of the loop. Only variables that should retain content after the loop should be declared outside the loop.

If you are not using strictures already I strongly recommend that you add use strict; use warnings; to your code.


DWIM is Perl's answer to Gödel

Replies are listed 'Best First'.
Re^4: Parsing very big files GB
by rootcho (Pilgrim) on Aug 31, 2007 at 17:13 UTC
    It was my error, I dont know exactly what because I changed alot of things..
    But now the memory usage is normal with open().
    definetly my error.
    still puzzled !
    thanx for the help.