Webmaster in a Nutshell

Previous Chapter 15
Perl Quick Reference
Next
 

15.24 Information from System Files

passwd

Returns ($name, $passwd, $uid, $gid, $quota, $comment, $gcos, $dir, $shell).

endpwent

Ends lookup processing.

getpwent

Gets next user information.

getpwnam name

Gets information by name.

getpwuid uid

Gets information by user ID.

setpwent

Resets lookup processing.

group

Returns ($name, $passwd, $gid, $members).

endgrent

Ends lookup processing.

getgrgid gid

Gets information by group ID.

getgrnam name

Gets information by name.

getgrent

Gets next information.

setgrent

Resets lookup processing.

hosts

Returns ($name, $aliases, $addrtype, $length, @addrs).

endhostent

Ends lookup processing.

gethostbyaddr addr, addrtype

Gets information by IP address.

gethostbyname name

Gets information by hostname.

gethostent

Gets next host information.

sethostent stayopen

Resets lookup processing.

networks

Returns ($name, $aliases, $addrtype, $net).

endnetent

Ends lookup processing.

getnetbyaddr addr, type

Gets information by address and type.

getnetbyname name

Gets information by network name.

getnetent

Gets next network information.

setnetent stayopen

Resets lookup processing.

services

Returns ($name, $aliases, $port, $proto).

endservent

Ends lookup processing.

getservbyname name, proto

Gets information by service name.

getservbyport port, proto

Gets information by service port.

getservent

Gets next service information.

setservent stayopen

Resets lookup processing.

protocols

Returns ($name, $aliases, $proto).

endprotoent

Ends lookup processing.

getprotobyname name

Gets information by protocol name.

getprotobynumber number

Gets information by protocol number.

getprotoent

Gets next protocol information.

setprotoent stayopen

Resets lookup processing.


Previous Home Next
Miscellaneous Book Index Special Variables

HTML: The Definitive Guide CGI Programming JavaScript: The Definitive Guide Programming Perl WebMaster in a Nutshell
Hosted by uCoz