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

11 lines
153 B
Perl

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