Overrides core getgrent, getgruid, and getgrnam
functions with versions that return User::grent objects. The object
returned has methods with the same names as the structure fields they
return. That is, to return the field name, use the name
method:
use User::grent;
$gr = getgrgid(0) or die "No group zero";
if ( $gr->name eq 'wheel' && @{$gr->members} > 1 ) {
    print "gid zero name wheel, with other members";
}gr_ to the method name (for example, gr_name).Exports four functions:

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