Do you get the same effect by replacing the undef $chars; by just... 1? It could be something like what's described in the XML::Twig FAQ: by having the last statement of the handler, which is returned to the calling routine, not evaluate to a huge string, you avoid copying it and thus get the effect you got.
It looks like there was no bug in XML::Parser then, you just actually ran out of memory.
In reply to Re^7: Out of memory with XML::Parser
by mirod
in thread Out of memory with XML::Parser
by LukeyBoy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |