in reply to gethostbyname bug?
use Socket; my $packed_ip = gethostbyname('slashdot.org'); my $ip = inet_ntoa($packed_ip); print "$ip\n";
Update: The parenthesis don't matter in this case. I usually use them to avoid precedence misunderstandings, though.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: gethostbyname bug?
by geektron (Curate) on Sep 09, 2000 at 04:53 UTC | |
by Nooks (Monk) on Sep 11, 2000 at 02:46 UTC | |
by geektron (Curate) on Sep 12, 2000 at 02:13 UTC | |
by Nooks (Monk) on Sep 12, 2000 at 02:58 UTC |