Maybe that will work, but I need those arrays later to create multiple querys from.. So for example.
I created @array1, @array2 and @array3 names for my arrays based on the for loop.
@array1 = (1,2,3);
@array2 = (4,5,6);
so later in my perl code I can run these queries:
in my for loop (1..10 or whatever)
Select * from table where id in (@array1);
Select * from table where id in (@array2);
Select * from table where id in (@array3);
etc