NAME
User::getgrouplist - Interface to glibc "getgrouplist" function
VERSION
Version 1.0.3
SYNOPSIS
use User::getgrouplist;
my $username = 'johndoe';
my @list = getgrouplist($username);
print('Groups for user $username: ' . join(' ', @list) . "\n");
Description
User::getgrouplist
is an interface for the getgrouplist
function available on many BSD-like Unix systems, and Linux. It returns the list of all groups a user is in.
Exports
Function getgrouplist($username)