On Fri, 2005-08-19 at 21:23 -0400, Christopher H. Laco wrote: > Ah.... does that closure become a global? > > package MyApp; > { > > }; > > > &MyApp::__ANON__ (ish)?
Not exactly, but it does persist the value of @context. That's what closures do. > 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? It behaves exactly the same in both cases. In a CGI script you will exit and kill the interpreter after every request, so you'll usually not notice that the value is the same if you call it again. - Perrin