in reply to gethostbyname bug?
use strict; my @returnVal = gethostbyname "www.perlmonks.org"; my @packedIP = $returnVal[4]; my ($a, $b, $c, $d); my @a = ($a, $b, $c, $d) = unpack('C4', $packedIP[0]); my $ip = "$a.$b.$c.$d"; print $ip; exit(0);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: gethostbyname bug?
by BastardOperator (Monk) on Sep 09, 2000 at 05:31 UTC | |
by redmist (Deacon) on Sep 09, 2000 at 06:16 UTC | |
by BastardOperator (Monk) on Sep 09, 2000 at 06:53 UTC | |
by OzzyOsbourne (Chaplain) on Sep 11, 2000 at 22:01 UTC | |
|
RE: Re: gethostbyname bug?
by geektron (Curate) on Sep 09, 2000 at 05:28 UTC |