There is a script which I am invoking inside my original perl script using a system command.
The inner script takes an array element as an arguments
system("/xyz/batch_f -a analyze -c specific -l $_ &") foreach @batch;
I want the inner script "batch_f" to process only 4 elements of an array at a time simultaneously & then wait for 30 sec & then again proceed with the remaining ones.
I tried using splice but no luck. Need an expert advice.