3.2.44 getgrentgetgrent setgrent endgrent These functions do the same thing as their like-named system library routines - see getgrent (3). These routines iterate through your /etc/group file (or its moral equivalent coming from some server somewhere). The return value from getgrent in list context is: ($name, $passwd, $gid, $members)
where
while (($name, $passwd, $gid) = getgrent) { $gid{$name} = $gid; } In scalar context, getgrent returns only the group name. |
|