![]() 8.155. Net::hostent
You can access the structure fields with the methods or by importing the fields into your namespace with the :FIELDS import tag and accessing them by prepending h_ to the field name: $host_obj->name( ) $h_name Net::hostent exports the following.
gethost (host) Frontend for gethostbyaddr and gethostbyname. If hostis numeric, calls gethostbyaddr; otherwise, calls gethostbyname.
gethostbyaddr (addr, addrtype) Returns information about the host with address addr of type addrtype.
gethostbyname (hostname) Returns information about the host with name hostname. ![]() Copyright © 2002 O'Reilly & Associates. All rights reserved. |
|