in reply to How can I get a remote user's IP using Perl?

$ENV{REMOTE_ADDR}
For that matter, you could use remote_host() from CGI.pm.

Also, try this:

#!/usr/bin/perl -w use strict; $|++; use CGI; my $cgi = CGI->new; print $cgi->header, $cgi->start_html, $cgi->pre( ( map { "$_\t$ENV{$_}\n" } keys %ENV ) ), $cgi->end_html;
That was untested, but I'm pretty sure it's right :-)

Replies are listed 'Best First'.