--- Joseph Crotty <[EMAIL PROTECTED]> wrote:
> I read that if you run scripts under Apache::Registry,
> its a good idea to write memory leak proof code.
Since the code is resident in memory between calls to the script, it's
a *very* good idea to be careful of such things.
> I also read that one should "clean up their" globals.
> Any examples in Stas's guide or elsewhere of "cleaning up"
> globals or classic memory leaks associated with Apache::Registry.
Always initialize, and if possible set back to a null value of some
sort when done. ALWAYS use fresh opens on filehandles, and ALWAYS close
them!
For good examples, check the section from
http://perl.apache.org/guide/porting.html#Exposing_Apache_Registry_secret
down through http://perl.apache.org/guide/porting.html#Thinking_mod_cgi
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices.
http://auctions.yahoo.com/