coreolyn has asked for the wisdom of the Perl Monks concerning the following question:
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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Reusing a dbh from a CGI script via OO method
by merlyn (Sage) on Aug 14, 2000 at 20:22 UTC | |
by coreolyn (Parson) on Aug 14, 2000 at 20:26 UTC | |
|
RE: Reusing a dbh from a CGI script via OO method
by steveAZ98 (Monk) on Aug 15, 2000 at 00:02 UTC | |
|
RE (tilly) 1: Reusing a dbh from a CGI script via OO method
by tilly (Archbishop) on Aug 15, 2000 at 10:17 UTC | |
by merlyn (Sage) on Aug 15, 2000 at 15:26 UTC |