Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: fork() not working as expectedby Crackers2 (Parson) |
on Mar 21, 2009 at 05:31 UTC ( [id://752194]=note: print w/replies, xml ) | Need Help?? |
The while (%pids) block should be outside of the foreach. Right now you're doing a fork and then waiting for the child to finish before starting the next one.
In Section
Seekers of Perl Wisdom
|
|