in reply to basic fork question

If you use Parallel::ForkManager you can write:
use Parallel::ForkManager; my $pm = new Parallel::ForkManager(30); foreach my $line (@array) { $pm->start and next; # process here $pm->finish; } $pm->wait_all_children;
All you have to do is decide on how many children you want :)

gav^

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.