scalar EXPR
Forces evaluation of
EXPR
in scalar context.
[
]
undef
LVALUE
Undefines the
. Always returns the undefined value.
LVALUE
wantarray
Returns true if the current context expects an list value. undef if the current
context does not expect a value at all, false otherwise.
26. Information from system files
See the manual about return values in scalar context.
passwd
Returns ( $ name, $ passwd, $ uid, $ gid, $ quota, $ comment, $ gcos, $ dir, $ shell).
Ends look-up processing.
endpwent
getpwent
Gets next user information.
Gets information by name.
getpwnam NAME
getpwuid UID
Gets information by user ID.
setpwent
Resets look-up processing.
group
Returns ( $ name, $ passwd, $ gid, $ members).
endgrent
Ends look-up processing.
Gets information by group ID.
getgrgid GID
getgrnam NAME
Gets information by name.
Gets next group information.
getgrent
setgrent
Resets lookup processing.
hosts
Returns ( $ name, $ aliases, $ addrtype, $ length, @addrs).
Ends look-up processing.
endhostent
gethostbyaddr ADDR, ADDRTYPE
Gets information by IP address.
Gets information by host name.
gethostbyname NAME
gethostent
Gets next host information.
Resets look-up processing.
sethostent STAYOPEN
networks
Returns ( $ name, $ aliases, $ addrtype, $ net).
endnetent
Ends look-up processing.
Gets information by address and type.
getnetbyaddr ADDR, TYPE
Gets information by network name.
getnetbyname NAME
getnetent
Gets next network information.
Resets look-up processing.
setnetent STAYOPEN
services
Returns ( $ name, $ aliases, $ port, $ proto).
Ends look-up processing.
endservent
getservbyname NAME, PROTO
Gets information by service name.
getservbyport PORT, PROTO
Gets information by service port.
Gets next service information.
getservent
23