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.
In reply to Re^3: Parsing very big files GB
by GrandFather
in thread Parsing very big files GB
by rootcho
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |