Name
getgrnam
Synopsis
getgrnam name
Retrieves a group file entry by the group name
name
. The return value in list context
is:
($name, $passwd, $gid, $members)
in which $members
contains a space-separated list of the login names of the members
of the group. In scalar context, getgrnam
returns only the numeric group
ID.
Get Perl in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.