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.
In reply to Re^6: How do foreach loops use their list values?
by enderk
in thread [Solved]How do foreach loops use their list values?
by enderk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |