Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

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.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2016-10-24 08:40 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (304 votes). Check out past polls.