in reply to Re^5: How do foreach loops use their list values?
in thread [Solved]How do foreach loops use their list values?
Oh wow thank you so much! I did not realise @words was not being reinitialised after each iteration through the loop (which makes sense, since it was declared outside the loop).
Thanks a lot, all of you, I think I learnt a lot by trying to understand this code. Have a nice Sunday.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: How do foreach loops use their list values?
by AnomalousMonk (Archbishop) on Nov 03, 2013 at 11:02 UTC |