I have a program written in perl (Perl Version 5.10.1 running under Linux) that generates an array. Each entry of the array is another array. Each of these last arrays contains a set of 7 values that I need to write to a database. Currently I run a loop over the array of arrays and write the info to the database. As these writes are independent of each other I was thinking that I could run several processes in parallel.

Below is the basic loop I currently use that I would like to split into parallel processes. I need to do this in parallel as the initial array of arrays contains around 100,000 entries, which takes about 30 minutes to add the entries to the database.

```
for my $icell (0 .. scalar @Sheet_Cells_Data-1){
    my $Cell_Data_INTER1=$Sheet_Cells_Data[$icell];
    my @Cell_Data=@$Cell_Data_INTER1;
    $insert_to_db->execute($Cell_Data[0],$Cell_Data[1],$Cell_Data[2],$Cell_Data[3],$Cell_Data[4],$Cell_Data[5],$Cell_Data[6]);
}

```

So, would this be possible and if so how would I go about achieving it.

Any help much appreciated

Chazg76