in reply to Re: gethostbyname not working
in thread gethostbyname not working
my $hostname = 'yahoo.com'; my $addr = (gethostbyname($hostname))[0]; my ($a,$b,$c,$d) = unpack('C4',$addr); print "$a.$b.$c.$d\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: gethostbyname not working
by tadman (Prior) on Mar 27, 2001 at 23:19 UTC | |
|
Re: Re: Re: gethostbyname not working
by myocom (Deacon) on Mar 27, 2001 at 02:18 UTC |