Hi Jim, Stas, On Fri, 12 Jul 2002, Stas Bekman wrote:
> Jim Schueler wrote: > > I just read the fine print: :) Good man. > > Apache::Registry runs BEGIN subroutines just once per child > > process, but END routines run every time a script is run. The > > implication is that an otherwise robust module may behave > > unexpectedly when it's imported by an Apache::Registry script. Yup. > > Doesn't this cause problems for mod_perl users? Only at first. :) > > There is no mention of this issue in either mod_perl_to_cgi or > > mod_perl_traps. The Apache::Registry documentation is probably the more appropriate place for this, since Apache::Registry is an acknowledged hack anyway and you should really be aiming to use handlers... > Please read: > http://perl.apache.org/release/docs/1.0/guide/porting.html#END_blocks > > The special case is for registry scripts that include END blocks. If the > the explanation at the above URL is unclear/confusing, please suggest > how to improve it. It's pretty clear, and the bit about BEGIN blocks is right next to it, but it might be worth adding a note about the imbalance between BEGIN blocks and END blocks under Apache::Registry to cover this issue. 73, Ged.