Thanks all.  My real question was not so much HOW to fix but more WHY do
i need to fix.  I did not realize that using push_handlers would not
send the Apache request to the method handler.

Geoffrey Young wrote:

> > -----Original Message-----
> > From: Robert Landrum [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, March 05, 2001 11:19 AM
> > To: Geoffrey Young; 'Mike Cameron'
> > Cc: [EMAIL PROTECTED]
> > Subject: RE: push_handlers question
> >
> >
> > At 10:36 AM -0500 3/5/01, Geoffrey Young wrote:
> > > > > Thanks for the suggestion, but what i really want to know is
> > >> > why is the
> > >> > request object passed if I call the module directly from
> > >> > http.conf and not
> > >> > when I use the push handlers method? Are the two methods not
> > >> > functionally
> > >> > equivalent?  Everything works fine when the handler is set in
> > >> > httpd.conf.
> > >>
> > >> according to the mod_perl pocket reference (p20) method
> > >> handlers do not get
> > >> the request object passed to them
> > >
> > >I should have said method handlers that are set up via
> > push_handlers() don't
> > >have the request object passed to them.
> > >
> > >for normal method handlers,
> > >$self = shift;
> > >$r = shift;
> >
> >
> >
> > Couldn't you fake it?
> >
> > $r->push_handlers(
> >      PerlHandler => sub{ unshift @_, Apache->request; goto
> > &real_handler; }
> > );
>
> there's always more than one way :)
>
> --Geoff
>
> >
> > Robert Landrum
> >
> >
> > >[snip]
> > >
> > >
> >
> > --
> > "Will hack Perl for food."
> >

Reply via email to