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

Well I want to store more than one variable...

Why? (BTW: you are confusing variable and named variable).

Reason I want to do this is for example: I want my code to create the arrays @array1, @array2, @array3... I want @array1 = (1,2,3), @array2 = (4,5,6), etc

That's not a reason, it's just a restatement of the assertion that you want more than one named variable.

Please look deep within youself and see if you can actually find a reason why you want this.

  • Comment on Re^3: Adding a number from scalar variable to array name