programming-examples/perl/SystemFunction/List group.pl
2019-11-15 12:59:38 +01:00

14 lines
305 B
Perl

#!/usr/bin/perl
use warnings;
use strict;
use User::grent;
while (my $group = getgrent) {
print 'Name : ', $group->name, "\n";
print 'Password: ', $group->passwd, "\n";
print 'Group ID: ', $group->gid, "\n";
print 'Members : ', join(', ', @{$group->members}), "\n\n";
}