Name
getgrent
Synopsis
getgrent
Returns the next entry from the systems group file
(usually /etc/group on Unix systems) starting
from the top. Returns null when end-of-file is reached. The return
value from getgrent
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, getgrent
returns only the group
name.
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.