in reply to Re^8: XML::Twig loves to eat my memory
in thread XML::Twig loves to eat my memory

Can you advise me how to use weaken in my example? I Tried to add weaken($t) after calling $t->dispose() but nothing changed, memory use remained the same. I also tried to call weaken($t) after $t= new XML::Twig but that simply made the XML::Twig object break, it failed on the next method call.

Replies are listed 'Best First'.
Re^10: XML::Twig loves to eat my memory
by ikegami (Patriarch) on Jul 24, 2010 at 13:38 UTC
    Twig uses weaken so you don't have to call dispose. Don't call weaken. There does appear to be a memory leak, so you should be submitting a bug report.
Re^10: XML::Twig loves to eat my memory
by Anonymous Monk on Jul 23, 2010 at 16:55 UTC