| Previous | Next
User::grentOverrides core
The field names (and therefore the method names) are the same as the names of the fields in the group structure from the C file grp.h: name, passwd, gid, and members (not mem). The first three return scalars, the last an array reference. You can access the fields with the methods or by importing the fields into your namespace with the :FIELDS import tag and prepending
$gr->getgr(arg) Frontend that forwards a numeric arg to
$gr = getgrent( ) Successive calls to
$gr = getgrgid(gid) Accesses the group file by group ID gid.
$gr = getgrnam(gname) Accesses the group file by group name |