in reply to Re: Re: gethost from Net::Hostent fails strangely
in thread gethost from Net::Hostent fails strangely

Just check to be sure 'gethost' succeeded. You were just trying to use the return value as an object, when it's not guaranteed not to be undefined. Since you're doing it inside an eval, the die would be caught by the eval. You should probably do a little more checking in your code to be sure stuff actually succeeded.
  • Comment on Re: Re: Re: gethost from Net::Hostent fails strangely