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

That was what I thought too ! To be sure I'm not leaking info..for all hashes, arrays and objects I do "undef var", after they are no longer needed.

Replies are listed 'Best First'.
Re^3: Parsing very big files GB
by GrandFather (Saint) on Aug 31, 2007 at 00:03 UTC

    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
      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.