Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^5: XML::Twig to mysql totally lost

by mirod (Canon)
on Jul 15, 2011 at 10:04 UTC ( #914541=note: print w/ replies, xml ) Need Help??


in reply to Re^4: XML::Twig to mysql totally lost
in thread XML::Twig to mysql totally lost

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.


Comment on Re^5: XML::Twig to mysql totally lost
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://914541]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (15)
As of 2014-07-31 19:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (252 votes), past polls