Tag Archives: Forking

How to Fork in Perl

Kick off multiple processes simultaneously in Perl. my $num = 10; my @children; for (my $i = 0; $i < $num; $i++) { my $pid = fork(); if ($pid) { # parent push @children, $pid; } elsif ($pid == 0) … Continue reading

Posted in Forking, Perl | Tagged | Leave a comment