Use XML::Twig or XML::Rules and process the file in chunks. By the time your loop runs it'a already too late and the memory has already been wasted.
Jenda
Enoch was right!
Enjoy the last years of Rome.
In reply to Re: XML::LibXML memory leak
by Jenda
in thread XML::LibXML memory leak
by spstansbury
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |