Re: Dissappearing Lexicals

2000-08-31 Thread David E. Wheeler
Matt Sergeant wrote: On Wed, 30 Aug 2000, mgraham wrote: [snip] Personally, I've given up on package-scoped lexicals entirely, and moved everything into "use vars". It's a pain, because you lose the encapsulation and you have to declare and assign the variables separately. But it

Dissappearing Lexicals

2000-08-29 Thread David E. Wheeler
Hi All, I've encounted a strange problem with our mod_perl installation. I have a library for handling DBI stuff, and store the $dbh in a package-level lexical. The $dbh is not populated until the first time a DBI call is made - which is during a request and therefore always after Apache forks.