![]() |
|
XP is just a number | |
PerlMonks |
Re^3: Adding a number from scalar variable to array nameby hgolden (Pilgrim) |
on Sep 08, 2006 at 18:58 UTC ( [id://572068]=note: print w/replies, xml ) | Need Help?? |
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).
In Section
Seekers of Perl Wisdom
|
|