start page | rating of books | rating of authors | reviews | copyrights

Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: Reference: getgrent Chapter 5
Function Reference
Next: Reference: getgrnam
 

getgrgid

getgrgid 
gid

Retrieves a group file ( /etc/group ) entry by group number gid . The return value in list context is:

($name, $passwd, $gid, $members)
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.


Previous: Reference: getgrent Perl in a Nutshell Next: Reference: getgrnam
Reference: getgrent Book Index Reference: getgrnam