good reason why each was erased from our concsiousness [sic]
Thanks for bringing that to our attention 🙂
It seems that each is OK provided we know for sure that the array or hash that is being iterated is not being modified during the iteration. Much of the time we can be sure of that I think. But, of course, it is easy to overlook that the data could be modified, particularly if each is used in a module.
In reply to Re^4: grep { } positional number of element
by Bod
in thread grep { } positional number of element
by leszekdubiel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |