> I have tried to use XML:Twig to parse a 2GB XML file instead of using > XML:Simple, but I still got an error "The memory couldn't be written". My > Perl is the latest and my RAM is 1GB.
Are you issuing a $twig->purge at the end of each handler? Without it memory is not implicitly released (no garbage collection so to speak). Or maybe you are trying to construct a twig with a malformed root and you are ending up reading the entire file (in other words the twig does not know when to stop until it runs out of data, or in your case runs out of memory). Peter -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>