February 2012
Intermediate to advanced
1184 pages
37h 17m
English
getgrgid GIDThis function looks up a group file entry by group number. The return value in list context is:
# 0 1 2 3
($name, $passwd, $gid, $members)
= getgrgid(0);where $members contains a
space-separated list of the login names of the members of the group. If
you want to do this repeatedly, consider caching the data in a hash
using getgrent.
In scalar context, getgrgid
returns only the group name. The User::grent module supports a by-name interface to this function. See
getgrgid(3).
Read now
Unlock full access