in reply to Re^2: Running perl scripts in parallel
in thread Running perl scripts in parallel
use strict; use warnings; my $pid = fork(); die "Fork failed" if not defined $pid; if ($pid) { #parent print "Parent output\n"; } else { #child exec q|perl -e 'sleep(1); print "Child output\n"'|; } wait; print "Parent finishing\n";
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Running perl scripts in parallel
by perl_help26 (Beadle) on Jul 24, 2014 at 07:05 UTC |