July 2002
Beginner to intermediate
96 pages
1h 53m
English
In list context, each of these routines returns a list of values. Use the standard module Net::hostent for by-name access to the elements of the list:
Index | Name | Description |
|---|---|---|
0 | name | Host name |
1 | aliases | Alias names |
2 | addrtype | Address type |
3 | length | Length of address |
4 | addr | Address, or addresses |
Ends lookup processing.
, addrtypeGets information by IP address. In scalar context, returns the hostname.
Gets information by hostname. In scalar context, returns the host address.
Gets next host information. In scalar context, returns the hostname.
Resets lookup processing.
Read now
Unlock full access