for ($d = 0; $d <= $#arr_name; $d++) { #need to create new array with the loop count appended to the name @arr_new_$d; #need to push items into new array push (@arr_new_$d, $something2add); }