Well, it seems that the mistake I've made a while ago, explaining the
"closure" effect in the guide has been propagated to many people on the
list. I've fixed it since then, but probably a few noticed this in the
CHANGES log. 

There is no 'closure' effect caused by Registry scripts!!! This is called
the 'nested sub' effect. Please take a moment to reread the corrected
writeup: 
http://perl.apache.org/guide/perl.html#my_Scoped_Variable_in_Nested_S

P.S. of course you can create a closure in your code, but in general case
of registry "problems" it's not a closure.

I apologize for creating a confusion. This is what happens when there is
no proof reading of such a big document. I wish more people wouldn't take
things for granted and send me corrections. I know there are bugs and
omissions in the guide, because I find them myself from time to time, and
Ged did an enourmous work cleaning the whole thing up for all of us. (I
know the new release is due, will do that very soon now :)

If you wander who told me about the 'closure' mistake, it's quite
interesting. I've found it when I've received my tutorial evaluation from
O'Reilly conference (half a year after I taught the tutorial). Among
comments about my German accent :) there was one that included a long list
of things that should be corrected. I wish there were more attendant like
this guy. 

Talking about conferences... I hope to see you in Orlando in March at
ApacheCon (apachecon.com)... there will be more mod_perl classes :)

Enjoy.

_______________________________________________________________________
Stas Bekman    mailto:[EMAIL PROTECTED]      http://www.stason.org/stas
Perl,CGI,Apache,Linux,Web,Java,PC     http://www.stason.org/stas/TULARC
perl.apache.org    modperl.sourcegarden.org   perlmonth.com    perl.org
single o-> + single o-+ = singlesheaven    http://www.singlesheaven.com

Reply via email to