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

10 lines
149 B
Perl

#!/usr/bin/perl
use warnings;
use strict;
my @groups;
while (my $name = getgrent) {
push @groups, $name;
}
print "Groups: @groups \n";