Copyright © tutorialspoint.com
Syntax
Definition and UsageLooks up the group file entry by group ID. Returns the following in a list context: ($name, $passwd, $gid, $members) The $members scalar contains a space-separated list of the login names that are members of the group. Returns the group name in a scalar context. For a more efficient method of retrieving the entire groups file, see getgrent. Under Windows, consider using the Win32API::Net module. Return Value
ExampleTry following example:
|
Copyright © tutorialspoint.com