in reply to gethost from Net::Hostent fails strangely
If we're sure the output is coming out when it should, but your code is somehow not executing, we can begin investigating the module, but realistically, Net::hostent is just a wrapper around gethostbyaddr/gethostbyname.
Update: I am not able to reproduce your behavior as you describe, however, using an IP address that does not resolve back to a name causes my script to die outright:
Could you be executing this in an eval block or something, which might be trapping the die and allowing your script to continue executing?Can't call method "name" on an undefined value at test line 8.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: gethost from Net::Hostent fails strangely
by jepri (Parson) on Jan 10, 2001 at 12:43 UTC | |
by Fastolfe (Vicar) on Jan 10, 2001 at 18:42 UTC |