in reply to Re^2: Adding a number from scalar variable to array name
in thread Adding a number from scalar variable to array name
I agree that you probably don't want to use a variable as a variable name, but you still have to fix your problem. Have you considered using an array of arrays? You can define elements as $array[1][2]=(whatever) which would be the third element of the second array (0 being the first index).