in reply to Retrieve unix group membership for a uid in a perl CGI

This works for me:
my $grp = getgrgid((getpwnam("user"))[3]); print $grp;

- Tom