I know several ways to get my ip address. But I don't know how I would do it this way.
Basically what I did was used all 3 of the config files for simplicity. Here is what I have.
open(LOG, ">srm.conf");
print LOG "ServerName $ipn";
close (LOG);
I want to be able to replace $ip with my current ip address. I do know accessing this file via my browser I would use
$ip = $ENV{'REMOTE_ADDR'};
BUT. I want to activate the script at the dos prompt.
perl ip.pl
when I do this the $ENV{'REMOTE_ADDR'}; variable does not work. I want to know what variable would work in its place. If there is any.
Thanks again
------------------
-Twenty7
http://www.englishhouse.com/twenty7/ That game called
Infantry http://infantry.nmebase.com/ This message has been edited by Twenty7 on September 27, 2000 at 12:19 AM