On Mon, 2006-10-23 at 12:05 -0600, Steve Duran wrote:

>   I would like to get the IP address of the request, so I've tried the
> following:
>  
>   my $c = $r->connection();
>   my $ipAddr = $c->remote_ip();  
>   
>   I get the following error: 
>  
>   Can't locate object method "remote_ip" via package
> "Apache2::Connection"
>  
>   Can anyone tell me what I'm missing?

use Apache2::Connection;

That's probably all you need.

The docs for Apache2::Connection can be found in your distribution or on
CPAN here:
http://search.cpan.org/dist/mod_perl/

- Perrin

Reply via email to