Loading ...
Sorry, an error occurred while loading the content.

Re: Perl Class destory

Expand Messages
  • Praveen Ray
    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
    Message 1 of 2 , Sep 30, 2003
    • 0 Attachment
      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@... 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
      >
    • perl@swanmail.com
      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
      Message 2 of 2 , Sep 30, 2003
      • 0 Attachment
        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
      Your message has been successfully submitted and would be delivered to recipients shortly.