muaddib2 has asked for the wisdom of the Perl Monks concerning the following question:
The error that I am getting is#/usr/bin/perl use warnings; use Socket; print "Ip address "; my $ipaddr = <STDIN>;#/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;
(edited 2001-04-24 by tilly to add code tags)Use of uninitialized value in subroutine entry at huh2 line 7, <STDIN> + line 1. Bad arg length for Socket::inet_ntoa, length is 0, should be 4 at huh2 + line 7, <STDIN> line 1. Use of uninitialized value in subroutine entry at huh2 line 7, <STDIN> + line 1. Bad arg length for Socket::inet_ntoa, length is 0, should be 4 at huh2 + line 7, <STDIN> line 1. Use of uninitialized value in subroutine entry at huh2 line 7, <STDIN> + line 1. Bad arg length for Socket::inet_ntoa, length is 0, should be 4 at huh2 + line 7, <STDIN> line 1. $peer_host = gethostbyaddr($ipaddr, AF_INET); $peer_addr = inet_ntoa($peer_host); print $peer_addr;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(Ovid)Re: DNS resolver
by Ovid (Cardinal) on Apr 25, 2001 at 02:51 UTC |