Re: Make database handle persist in CGI/DBI application?



Mary Anderson <mfanderson@xxxxxxxxxxx> wrote:
I have tried passing the handle in as a ref parameter, using $dbhRef = /*dbh
(maybe this one was done incorrectly) and tried passing a $dbhRef as a
value on a hidden textfield. None of these work. I tend to get
"not an array" when I try to do $$dbhref to dereference the handle.

Is there any way to make the handle persist?
Would I have this trouble if I used Mason?

Mary,
You need mod_perl;

http://perl.apache.org/

Check here first;

http://perl.apache.org/docs/2.0/user/coding/coding.html#C_ModPerl__Registry__Handlers_Family

Cheers,
Tyler


.