sanPerl has asked for the wisdom of the Perl Monks concerning the following question:
I am expecting "www.yahoo.com" in the second line of output (i.e. $aliases), Am I doing something wrong?my ($name,$aliases,$addrtype,$length,@addrs) = gethostbyaddr(inet_aton +("69.147.76.15"), AF_INET); print $name."\n"; print $aliases."#".$addrtype."#".$length."\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: IP address to Hostname
by ikegami (Patriarch) on Jul 02, 2009 at 21:28 UTC | |
by JavaFan (Canon) on Jul 03, 2009 at 10:22 UTC | |
|
Re: IP address to Hostname
by toolic (Bishop) on Jul 02, 2009 at 21:14 UTC | |
|
Re: IP address to Hostname
by JavaFan (Canon) on Jul 02, 2009 at 21:17 UTC | |
|
Re: IP address to Hostname
by imrags (Monk) on Jul 03, 2009 at 09:52 UTC | |
|
Re: IP address to Hostname
by ikegami (Patriarch) on Jul 03, 2009 at 16:34 UTC | |
by sanPerl (Friar) on Jul 04, 2009 at 04:01 UTC |