On Sun, 12 Nov 2000, Dave Kaufman wrote:

> > Is there a module that can do "Stacked Handler Pipelining", but 
> > doesn't pass around tied filehandles but data structures ?

Can't you allocate some generic namespace, or better yet, create your own
package called config and in that export functions get_config set_config
They will get/set a package wide variable. Then you make new,DESTROY, and
what other functions you need. Then you create/set object in the Init
module and the way you go, call get_config in each of the stacked modules
and insert data into it, so it will be passed along. Simple alternative,
you can store a hash in package wide namespace of the first package, and
access that via hashref, which is more convinient or Package::hashname
notation.
Thats how I did it.

> > If there isn't, could it be implemented by dumping the data 
> > structure to $r->notes (with Data::Dumper) and have it eval'ed back 
> > by the next handler?

God NO! Have you read of overhead incurring on eval? Might as well go back
to the days of PerlCGI,<choke, choke>

Hope that helped.
Pavel

Reply via email to