muaddib2 has asked for the wisdom of the Perl Monks concerning the following question:
This doesn't seem to work and I am not sure why I am getting syntax error#/usr/bin/perl use warnings; use Socket; print "Ip address "; my $ipaddr = <STDIN>; $peer_host = gethostbyaddr($ipaddr, AF_INET); $peer_addr = inet_ntoa($peer_host); print $peer_addr;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DNS Resolution4
by tinman (Curate) on Apr 25, 2001 at 02:58 UTC | |
|
Re: DNS Resolution4
by hdp (Beadle) on Apr 25, 2001 at 03:45 UTC | |
|
(boo)Re: DNS Resolution4
by boo_radley (Parson) on Apr 25, 2001 at 02:53 UTC | |
by muaddib2 (Novice) on Apr 25, 2001 at 02:55 UTC | |
|
Re: DNS Resolution4
by KM (Priest) on Apr 25, 2001 at 21:34 UTC |