tlhackque has asked for the wisdom of the Perl Monks concerning the following question:
The gethost* (e.g. gethostbyaddr) functions document that if h_errno is supported by C, h_errno is returned in $? if a call fails. I would like to ascribe meaning to the returned value.
Where are the symbolic values (e.g. from C's netdb.h) such as TRY_AGAIN and HOST_NOT_FOUND defined in Perl? Is there a hstrerror() equivalent?
Thanks.
This communication may not represent my employer's views, if any, on the matters discussed.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: h_errno constants?
by Perlbotics (Archbishop) on Jun 21, 2009 at 10:25 UTC | |
by tlhackque (Beadle) on Jun 21, 2009 at 13:03 UTC | |
|
Re: h_errno constants?
by tlhackque (Beadle) on Jun 21, 2009 at 14:54 UTC | |
|
Re: h_errno consants?
by Anonymous Monk on Jun 21, 2009 at 10:21 UTC | |
by tlhackque (Beadle) on Jun 21, 2009 at 10:58 UTC | |
by Anonymous Monk on Jun 21, 2009 at 12:07 UTC |