- or download this
my @keycards= qw(A B C);
my @users = qw(peter james john luke andrew judas);
...
sleep(int(rand(3)));
my $key = pop(@keycards);
$pm->start and next;
- or download this
my $pm = Parallel::ForkManager->new(2);
- or download this
my $pm = Parallel::ForkManager->new(@keycards - 1);