in reply to Re^3: grep { } positional number of element
in thread grep { } positional number of element
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: grep { } positional number of element
by LanX (Saint) on Oct 25, 2022 at 16:53 UTC |