Re: Weird variable scope problem

2016-03-31 Thread Perrin Harkins
Hi John, Pretty hard to know what's going on without looking at actual code, but it could be some variation of this type of problem: http://perl.apache.org/docs/1.0/guide/porting.html#Name_collisions_with_Modules_and_libs You can easily run into trouble with code that either doesn't use package

Re: Weird variable scope problem

2016-03-25 Thread John Dunlap
They are initialized in my handler method, at the start of the request so they should be initialized at runtime. Basically, I have a singleton object which extends Class::Singleton which functions as an IOC container. However, because I have multiple virtual hosts and because the database

Re: Weird variable scope problem

2016-03-25 Thread Perrin Harkins
On Fri, Mar 25, 2016 at 10:11 AM, John Dunlap wrote: > > Basically, I have a module which has a some lexically scoped variables in > it. These variables are used by accessor methods in the package. The > problem is that, if I use this module in certain parts of my application, >

Weird variable scope problem

2016-03-25 Thread John Dunlap
Unfortunately, I don't have a readily available example which can reproduce this problem as I'm seeing it in a large code base. I'm really just looking for ideas that might point me in the right direction. Basically, I have a module which has a some lexically scoped variables in it. These