User::getgrouplist - Interface to glibc "getgrouplist" function
Version 1.1.1
use User::getgrouplist; my $username = 'johndoe'; my @list = getgrouplist($username); print('Groups for user $username: ' . join(' ', @list) . "\n");
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.
User::getgrouplist
getgrouplist
Function getgrouplist($username)
getgrouplist($username)
To install User::getgrouplist, copy and paste the appropriate command in to your terminal.
cpanm
cpanm User::getgrouplist
CPAN shell
perl -MCPAN -e shell install User::getgrouplist
For more information on module installation, please visit the detailed CPAN module installation guide.