Thanks ikegami, but I am still not clear. If instead of using ForkManager module, I call fork once, it would make 2 processes running (a parent and a child) and I would need to check pid to know if I am in the parent or in a child. Now, if I use ForkManager and set # of processes to 20, and do 'start and next' the FIRST time in the loop, do I have 2 processes at this moment -- a parent and a child? If yes, then since I am not checking which process I am in, how does it know that a parent need to process $command[0] and the child need to take care of the next $command
(or vise versa)?
Thanks much.