in reply to DBI handle destroyed during CGI::Application setup
The error you are experiencing is a result of the DBI handle not being explicitedly disconnected prior to termination of CGI::Application execution - This error is not due to the closure of scope within the setup method. To correct this behaviour, you should make use of the teardown method within your CGI::Application class:
sub teardown { my $self = shift; $self->param('mydbh')->disconnect; }
This should correct your problem. This method and a couple of other 'gotchas' for CGI::Application is described in my review of this module here.
perl -e 's&&rob@cowsnet.com.au&&&split/[@.]/&&s&.com.&_&&&print'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: DBI handle destroyed during CGI::Application setup
by talexb (Chancellor) on Jan 07, 2002 at 04:36 UTC | |
by rob_au (Abbot) on Jan 07, 2002 at 04:48 UTC | |
by talexb (Chancellor) on Jan 07, 2002 at 21:27 UTC | |
by Anonymous Monk on Jan 08, 2002 at 05:27 UTC |