Sifmole has asked for the wisdom of the Perl Monks concerning the following question:
Knowing TIMTOWTDI I seek advice. A core aspect of much of my Day-Job is writing CGIs that access an Oracle Database. I am in the process of developing a standard library for my programming department which uses the DBI libraries.
The question is as follows --
Currently we "eval" the "prepare" and "execute" statements in order to capture any possible errors to $@ and prevent uncontrolled bailouts from the CGI. I have however read warnings that eval can slow down execution of the entire program ( although if used once the source goes on to say, don't worry about using it again because the damage is already done. )
Is there a way to accomplish these goals without taking the hit from the eval? Also, is there an eval hidden within the prepare and execute code which makes it pointless for me to bother attempting to avoid the eval?
Thanks in advance All,
Sifmole
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBI and Eval
by chipmunk (Parson) on Dec 20, 2000 at 19:51 UTC | |
by Sifmole (Chaplain) on Dec 20, 2000 at 20:39 UTC | |
|
Re: DBI and Eval
by merlyn (Sage) on Dec 20, 2000 at 19:39 UTC | |
by chromatic (Archbishop) on Dec 20, 2000 at 21:26 UTC | |
by Sifmole (Chaplain) on Dec 20, 2000 at 20:37 UTC |