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

9 lines
158 B
Perl

#!/usr/bin/perl
use warnings;
use strict;
while (my ($name, $passwd, $gid, $members) = getgrent) {
print "$gid: $name [$passwd] $members \n";
}