I know this was discussed just recently and I apologize for not being able to find the thread it was in.
I've a CGI script that uses DBI and accesses a dbase via OO methods. The dbh is currently being re-created on every dbase access. I believe I recall seeing a monk advise a fellow monk to use an anonymous subroutine to create, store, and access the handle via an eval block.
Do I recall correctly? Is this possible/advisable in a CGI session? Won't the dbh go out of scope anyway?
In reply to Reusing a dbh from a CGI script via OO method by coreolyn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |