Net::hostent
Net::hostent
NAME
Net::hostent - by-name interface to Perl's built-in gethost*() functions
SYNOPSIS
use Net::hostent;
DESCRIPTION
This module's default exports override the core gethostbyname() and gethostbyaddr() functions, replacing them with versions that return "Net::hostent" objects. This object has methods that return the similarly named structure field name from the C's hostent structure from netdb.h; namely name, aliases, addrtype, length, and addr_list. The aliases and addr_list methods return array reference, the rest scalars. The addr method is equivalent to the zeroth elem