perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher H. Laco" <cl...@chrislaco.com>
Subject Re: Scope Question
Date Sat, 20 Aug 2005 01:23:11 GMT
Perrin Harkins wrote:
> On Fri, 2005-08-19 at 20:24 -0400, Christopher H. Laco wrote:
> 
>>I'm assuming that each tome dosomething() changes @contect, it's only 
>>changing @contect for that MP child process.
> 
> 
> Correct.  However, dosomething() is a closure in your code, so @context
> will persist.

Ah.... does that closure become a global?

package MyApp;
{

};


&MyApp::__ANON__ (ish)?


Makes sense now that I think about it.
So, in the non MP world, that helps privitize lexicals to certain subs, 
but in MP it causes a scoping issue correct?

Thanks,
-=Chris

Mime
View raw message