in reply to Re: perl_mod caching DBI responses
in thread perl_mod caching DBI responses

Thanks Juerd! Yes, this fixed everything. I was not aware of that problem with globals and mod_perl. First, I was mistaken in thinking I *was* using strict properly. I was actually calling it from the base cgi, rather than the package (and assuming it would affect both). :-(

Second, I did not mean to let those few globals slide through. Because I accidentally wasn't using strict correctly (this is the first package I've ever written), I wasn't getting any scoping errors... as you can see by the rest of my code, I made an honest attempt at scoping properly.

Anyhoo, thanks again! w00t!!!

-fuzzyping

Replies are listed 'Best First'.
Re: Re: Re: perl_mod caching DBI responses
by perrin (Chancellor) on Jul 02, 2002 at 15:19 UTC
    I was just about to post a list of globals in your code, but I see you've already got it covered. Congrats on getting it working, and improving your coding style.

    You can read about issues with globals and other things in the mod_perl guide. By the way, this is what I meant about possibly using Apache::PerlRun instead of Apache::Registry. Apache::PerlRun will clear globals, which would have made your code work, but it's not as fast because of this.