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

Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: Reference: getc Chapter 5
Function Reference
Next: Reference: getgrgid
 

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 getgrent 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. In scalar context, getgrent returns only the group name.


Previous: Reference: getc Perl in a Nutshell Next: Reference: getgrgid
Reference: getc Book Index Reference: getgrgid

Library Navigation Links

Copyright © 2001 O'Reilly & Associates. All rights reserved.