in reply to Re: 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... Reason I want to do this is for example: I want my code to create the arrays @array1, @array2, @array3... Based on the number it gets from the original array (1,2,3.... ). I want @array1 = (1,2,3), @array2 = (4,5,6), etc
  • Comment on Re^2: Adding a number from scalar variable to array name

Replies are listed 'Best First'.
Re^3: Adding a number from scalar variable to array name
by nobull (Friar) on Sep 09, 2006 at 08:43 UTC
    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.