getgrent
getgrent
- Returns the next entry from the systems group file (usually /etc/group on Unix systems) starting from the top. Returns null when EOF is reached. The return value from
getgrentin list context is:
($name, $passwd, $gid, $members)
where$memberscontains a space-separated list of the login names of the members of the group. In scalar context,getgrentreturns only the group name.