http://www.perlmonks.org?node_id=946472


in reply to Re^3: XML::Twig output problem
in thread XML::Twig output problem

If I flush it, it deletes all the ads even though the comparison is valid to keep them!

Sounds like nonsense. flush is used for printing the twig to output. If that isn't what you want, stop flushing