In list context, each of these routines returns a list of values. Use the standard module User::pwent
for by-name access to the elements of the list:
Index | Name | Description |
---|---|---|
0 | name | Username |
1 | passwd | Password info |
2 | uid | ID of this user |
3 | gid | Group ID of this user |
4 | quota | Quota information |
5 | comment | Comments |
6 | gecos | Full name |
7 | dir | Home directory |
8 | shell | Login shell |
9 | expire | Password expiration info |
In list context, each of these routines returns a list of values. Use the standard module User::grent
for by-name access to the elements of the list:
Index | Name | Description |
---|---|---|
0 | name | Group name |
1 | passwd | Password info |
2 | gid | ID of this group |
3 | members | Space-separated list of the login names of the group members |
Ends lookup processing.
Gets next group information.
In scalar context, returns the group name.
Gets information by group ID.
In scalar context, returns the group name.
Gets information by name.
In scalar context, returns the group ID.
Resets lookup processing.
In list context, each of these routines returns a list of values. Use the standard module Net::netent
for by-name access:
Ends lookup processing.
,
typeGets information by address and type.
In scalar context, returns the network name.
Gets information by network name.
In scalar context, returns the network number.
Gets next network information.
In scalar context, returns the network name.
Resets lookup processing.
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 |
,
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.
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 protocol.
In scalar context, returns the service (port) number.
,
protocolGets information by service port for the protocol.
In scalar context, returns the service name.
Gets next service information.
In scalar context, returns the service name.
Resets lookup processing.
In list context, each of these routines returns a list of values. Use the standard module Net::protoent
for by-name access to the elements of the list:
Index | Name | Description |
---|---|---|
0 | name | Protocol name |
1 | aliases | Alias names |
2 | proto | Protocol number |
Ends lookup processing.
Gets information by protocol name.
In scalar context, returns the protocol number.
Gets information by protocol number.
In scalar context, returns the name of the protocol.
Gets next protocol information.
In scalar context, returns the name of the protocol.
Resets lookup processing.