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; }
);

Robert Landrum


>[snip]
>
>

--
"Will hack Perl for food."

Reply via email to