On Tue, 8 May 2001, Bjarni R. Einarsson wrote:

> Hi,
> 
> I hope I'm sending this to the right list, and apologize in
> advance if I'm making a mistake.  I have made a minor modification
> to the Apache::Registry.pm module, which I wanted to share with
> the list in case you developers thought it was worth including in
> the default distribution or considering further.
> 
> My code attempts to address the subroutine-closure problem (the
> problem that causes data from one invocation to live on to the
> next in many unmodified CGI scripts) by moving all subroutine
> definitions, variable declarations (my, local) and use statements
> out of handler() and into the generated packages' body.
> 
> Attached are a simple script which implements my algorithm (for
> playing with) and a crude patch against Registry.pm (version 2.01)
> which uses the algorithm.  Since I didn't know whether people
> would like my code or not, I didn't spend time updating the
> documentation section of the module.

thanks for the patch!  however, Apache::Registry no longer accepts new
features.  have you looked at Apache::{PerlRun,RegistryNG} ?
you would just need to create a new subclass that overrides the
'readscript' method and modifies it according to your algorithm.
if you get that going would be great to post here and/or cpan.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to