Re: strange mod_perl variable behaviour

2004-03-08 Thread MJH
On Friday 05 March 2004 07:19 pm, Perrin Harkins wrote: > > use app::utility_class; > > my $var = new app::utility_class; > > do stuff... > > If "do stuff" includes and subs that reference $var without it being > passed to them, you'll create a closure. For example: "do stuff" didn't, but t

Re: strange mod_perl variable behaviour

2004-03-05 Thread Perrin Harkins
On Fri, 2004-03-05 at 19:08, MJH wrote: > use app::utility_class; > my $var = new app::utility_class; > do stuff... If "do stuff" includes and subs that reference $var without it being passed to them, you'll create a closure. For example: sub foo { $var->bar(); } That will prevent it f