![]() |
|
Syntactic Confectionery Delight | |
PerlMonks |
Re: Adding a number from scalar variable to array nameby hgolden (Pilgrim) |
on Sep 08, 2006 at 18:47 UTC ( [id://572060]=note: print w/replies, xml ) | Need Help?? |
It might be easier to just use a hash. Then it would be: Also, if you're just assigning one number to each of the arrays, you can just access the array element directly: is equal to $num from when you set up the array. I hope this helps.
In Section
Seekers of Perl Wisdom
|
|