This worked.
Thanks, Steve -----Original Message----- From: Perrin Harkins [mailto:[EMAIL PROTECTED] Sent: Monday, October 23, 2006 1:39 PM To: Steve Duran Cc: modperl@perl.apache.org Subject: Re: how do I get the request IP? 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 ************************************************************************************************** CONFIDENTALITY NOTICE: This e-mail communication and any attachments may contain confidential and privileged information protected from disclosure by law. It is intended only for the use of the specified recipients. Any unauthorized review, use, disclosure, distribution or any action based on this material is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. **************************************************************************************************