I have a base class that supplies a DB connection to all of the child classes. The DB connection is opened only once and disconnected when the script ends.
Currently I have the disconnect in the END block of the parent class, but it is possible that the child classes will require the DB connection in their DESTROY blocks. The problem is that the END of the main class is being called *before* the children are DETROYed, and the children are finding that the DB connection has already been closed. So the question is, if END blocks are called before DESTROY blocks, is there something called after the DESTROY blocks where I can disconnect from the DB? Possible a signal handler? Any suggestions or pointers to docs would be appreciated. Thanks. Rob _______________________________________________ Perl-Unix-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs