You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Praveen Ray <pr...@crcnet1.com> on 2003/10/01 05:05:02 UTC

Re: Perl Class destory

It's just like any other perl object..If you keep a reference to your
object in global or package namespace,it's destroy will never be called
since modules under mod_perl are not unloaded unlink cgi.
If your object is lexically scoped,it'll be cleaned upon scope exit.

On Tue, 2003-09-30 at 23:13, perl@swanmail.com wrote:
> under mod_perl, does the module being called in the web that create
> classes get cleaned up w/o calling destroy explicitly? That is, if I
> create a DBI handler wrapper class, closes the db connection, finish the
> code but never call the destroy on explicitly. Or for any Class object?
> 
> I'm using DBI not Apache::DBI.
> 
> thanks,
> -rkl
>