in reply to Re: Re: Re: gethostbyname not working
in thread gethostbyname not working

You still need to unpack the results.

A complete example would be:

my $hostname = 'yahoo.com'; my $addr = gethostbyname($hostname); my ($a,$b,$c,$d) = unpack('C4',$addr); print "$a.$b.$c.$d\n";

Signature void where prohibited by law.