Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Adding a number from scalar variable to array name

by Anonymous Monk
on Sep 08, 2006 at 18:51 UTC ( [id://572062]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://572062]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2024-04-18 03:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found