Problems? Is your data what you think it is? | |
PerlMonks |
Re^5: XML::Twig to mysql totally lostby mirod (Canon) |
on Jul 15, 2011 at 10:04 UTC ( [id://914541]=note: print w/replies, xml ) | Need Help?? |
The purge in your handler releases the memory by deleting everything but the direct ancestors of the current element. The flush is used when you want to output the transformed XML, by using flush in handlers. Then you need to flush what remains in memory after you're done parsing. At least with old versions of the module, recent versions take care of this automatically. So the short answer is: yes you can delete it.
In Section
Seekers of Perl Wisdom
|
|