Using string interpolation to reference two dimensional array element
for $outerloop (0..4) { for $innerloop (0..4) { $array{"$outerloop,$innerloop"} = 1; } }