|XP is just a number|
Array confusion.by anonypl (Novice)
|on Feb 14, 2017 at 21:46 UTC||Need Help??|
anonypl has asked for the
wisdom of the Perl Monks concerning the following question:
I'm trying to re-learn perl after a long hiatus. Trying to reverse the array contents without using the "reverse" function, just to see how much I understand things. Looks like I have totally forgotten everything.
Here is what I am trying:
And here is the output:
What I fail to understand is, iterating the array using $thing variable but not using it at all in the loop still gives the expected result.
Tried printing out the $thing contents, by using print "[$thing]".
Here's the output
What am I missing? Something very basic and "duh" I guess..