I have a module that does some database (mySQL) i/o.
I am wondering what is the best way to make sure that DISCONNECT occurs
after all the processing. Do I have to provide a destructor that does it?
What gets called when the module clean up occurs? I tried END {...} but it
does not seem to kick in. I get this warning on my web page:
[Thu Feb 22 15:59:21 2001] send_new_pwd.pl: Issuing rollback() for database
handle being DESTROY'd without explicit disconnect().
Thanks for the help..
Ranga Nathan
- Re: module cleanup Ranga Nathan
- Re: module cleanup Kenneth Graves
