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::servent for by-name access to the elements of the list:
Index | Name | Description |
|---|---|---|
0 | name | Service name |
1 | aliases | Alias names |
2 | port | Port number |
3 | proto | Protocol number |
Ends lookup processing.
, protocolGets information by service name for the given protocol. In scalar context, returns the service (port) number.
, protocolGets information by service port for the given protocol. In scalar context, returns the service name.
Gets next service information. In scalar context, returns the service name.
Resets lookup processing.
Read now
Unlock full access