You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Igor Ivoilov <ig...@francoudi.com> on 2003/08/29 18:04:17 UTC

where to find request object in mod_perl2

Hello all,

I have perl programs running under Apache::Registry.
Now I need to switch to mod_perl2 and can not find request object.

I used to get as
$r = Apache->request;

But this does not work under mod_perl2.

Please advise how do something similar and avoid big changes in scripts.

Thank you in advance,

Igor


-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html


Re: where to find request object in mod_perl2

Posted by Stas Bekman <st...@stason.org>.
Paul G. Weiss wrote:
> The doc you reference says that Apache->request should be avoided 
> because it is expensive.  But does it in fact work?

Yes.  Have you actually read it? That section also explains when it's available.

Igor said: "this does not work under mod_perl2", without showing any error 
messages or explaining what kind of problem he has.

> On Fri, 29 Aug 2003 10:17:57 -0700, Stas Bekman <st...@stason.org> wrote:
> 
>> Igor Ivoilov wrote:
>>
>>> Hello all,
>>>
>>> I have perl programs running under Apache::Registry.
>>> Now I need to switch to mod_perl2 and can not find request object.
>>>
>>> I used to get as
>>> $r = Apache->request;
>>>
>>> But this does not work under mod_perl2.
>>
>>
>> http://perl.apache.org/docs/2.0/user/porting/compat.html#C_Apache_E_gt_request_ 
>>
>>
>> __________________________________________________________________
>> Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
>> http://stason.org/     mod_perl Guide ---> http://perl.apache.org
>> mailto:stas@stason.org http://use.perl.org http://apacheweek.com
>> http://modperlbook.org http://apache.org   http://ticketmaster.com
>>
>>
>>
> 


-- 


__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com



-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html


Re: where to find request object in mod_perl2

Posted by "Paul G. Weiss" <pa...@weiss.name>.
The doc you reference says that Apache->request should be avoided because 
it is expensive.  But does it in fact work?

-Paul


On Fri, 29 Aug 2003 10:17:57 -0700, Stas Bekman <st...@stason.org> wrote:

> Igor Ivoilov wrote:
>> Hello all,
>>
>> I have perl programs running under Apache::Registry.
>> Now I need to switch to mod_perl2 and can not find request object.
>>
>> I used to get as
>> $r = Apache->request;
>>
>> But this does not work under mod_perl2.
>
> http://perl.apache.org/docs/2.0/user/porting/compat.html#C_Apache_E_gt_request_
>
> __________________________________________________________________
> Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
> http://stason.org/     mod_perl Guide ---> http://perl.apache.org
> mailto:stas@stason.org http://use.perl.org http://apacheweek.com
> http://modperlbook.org http://apache.org   http://ticketmaster.com
>
>
>




-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html


Re: where to find request object in mod_perl2

Posted by Stas Bekman <st...@stason.org>.
Igor Ivoilov wrote:
> Hello all,
> 
> I have perl programs running under Apache::Registry.
> Now I need to switch to mod_perl2 and can not find request object.
> 
> I used to get as
> $r = Apache->request;
> 
> But this does not work under mod_perl2.

http://perl.apache.org/docs/2.0/user/porting/compat.html#C_Apache_E_gt_request_

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com



-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html