http://qs321.pair.com?node_id=463898


in reply to Re: Forking and running all child processes at the same time
in thread Forking and running all child processes at the same time

Why the test for $pid==-1 ? From perldoc -f fork:

returns the child pid to the parent process, 0 to the child process, or "undef" if the fork is unsuccessful.

the lowliest monk