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)
In reply to Re^3: Perl Oracle Database Connections remain ESTABLISHED!!
by astroboy
in thread Perl Oracle Database Connections remain ESTABLISHED!!
by vivek_an
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |