You have a problem if @fileArray > $forkCeiling. Solution: Parallel::ForkManager.
In reply to Re: assign variable and shift array by ikegami in thread assign variable and shift array by AK7033