If it breaks, you get both halves...

Rob Bloodgood robb at empire2.com
Wed Feb 20 17:19:33 CST 2002

> Doesn't this seem like strange behavior?
> perl -MSocket -e 'print
> inet_ntoa(gethostbyname("www.eli.net"))'
> prints:
> Usage:  Socket::inet_ntoa(ip_address_sv) at -e line 1
> but....
> perl -MSocket -e 'print
> inet_ntoa("".gethostbyname("www.eli.net"))'
> does the right thing and prints the IP address in dotted
> decimal notation.

Wow... you actually found a workaround for that!

I had to give up and use IO::Socket (I think, I don't really remember but it
was another incarnation of same).


#!/usr/bin/perl -w
use Disclaimer qw/:standard/;


More information about the Pdx-pm-list mailing list