in reply to Adding a number from scalar variable to array name
Also, if you're just assigning one number to each of the arrays, you can just access the array element directly:foreach $num (@numbers) { $store_get{$num}=$num; }
is equal to $num from when you set up the array. I hope this helps.$numbers[$num-1]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Adding a number from scalar variable to array name
by Anonymous Monk on Sep 08, 2006 at 18:51 UTC | |
by nobull (Friar) on Sep 09, 2006 at 08:43 UTC |