Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I really appreciate if someone could help me with my code. Thanks$address = $ENV{'REMOTE_HOST'}; $ipaddress = $ENV{'REMOTE_ADDR'}; $redirect = "telnet://" .$ipaddress ; if ( $in{'port'} ne "" ) { $redirect .= "telnet://" . $port; } $redirect .= "/"; print "Content-type: text/html\n"; print "Location: $redirect\n\n"; print "You should have been redirected to <a href=\"$redirect\">$redir +ect</a>"; exit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: direct to multiple IP addresses
by chromatic (Archbishop) on Sep 18, 2001 at 02:40 UTC |