|Do you know where your variables are?|
Array loops and assignmentsby madbee (Acolyte)
|on Jul 07, 2013 at 18:22 UTC||Need Help??|
madbee has asked for the
wisdom of the Perl Monks concerning the following question:
Have a really silly question about arrays... Given an array, I'm trying to loop through it and assign each element to a specific variable. Below is my attempt. Variable should be: vararray index
However, I'm getting an error message: syntax error at C:/..., near "$myNames[" Been stuck at it for sometime but cannot figure out the issue.Is this not allowed in Perl?
Is there a way I can assign each element of the array to a separate variable?
Thanks in advance, Madbee