perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Perrin Harkins <per...@elem.com>
Subject Re: Apache::RequestRec outside of handler?
Date Wed, 31 May 2006 21:59:50 GMT
On Wed, 2006-05-31 at 17:53 -0400, Jonathan Vanasco wrote:
> b- for my use ( really just accessing some stuff like remote_ip and  
> other connection methods when i don't have a $r handy ) it looks like  
> i'd be better off with creating a namespace and storing a ref to $r  
> at the start of each request, and resetting with a cleanup.  am i  
> right?

That's essentially what happens if you just set it with
Apache2::RequestUtil->request($r) at the start of your handler.  Then
you don't need to the PerlOptions +GlobalRequest setting.

- Perrin


Mime
View raw message