The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

User::getgrouplist - Interface to glibc "getgrouplist" function

VERSION

Version 1.1.1

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)