Each child gets its own copy of @arr and they are not shared or communicated to the parent. Each push occurs in isolation in the child and that copy dies with it.
Take a look at perlipc for some possible solutions.
After Compline,
Zaxo
In reply to Re: Parallel::ForkManager Problem
by Zaxo
in thread Parallel::ForkManager Problem
by neeraj
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |