in reply to Re^2: Perl Oracle Database Connections remain ESTABLISHED!!
in thread Perl Oracle Database Connections remain ESTABLISHED!!
Your problem is that you've declared $dbh outside of your subroutine, but reference it inside your subroutine. You should pass it into the subroutine instead. Have a look at this mod_perl doco
(P.S. If you don't wnat to pass you database handle around, just connect and disconnect in the main trunk of your code)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Perl Oracle Database Connections remain ESTABLISHED!!
by perrin (Chancellor) on Jan 03, 2006 at 14:38 UTC | |
by astroboy (Chaplain) on Jan 04, 2006 at 02:27 UTC | |
by perrin (Chancellor) on Jan 04, 2006 at 03:36 UTC |