in reply to How can I get a remote user's IP using Perl?
For that matter, you could use remote_host() from CGI.pm.$ENV{REMOTE_ADDR}
Also, try this:
That was untested, but I'm pretty sure it's right :-)#!/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;
|
|---|
| Replies are listed 'Best First'. |
|---|