Subject: | Enhancement: policy to detect 'for' list modification inside loop |
from perldoc:
If any part of LIST is an array, foreach will get very confused if you add or remove elements within the loop body, for example with splice. So don't do that.
so it's probably possible/easy to detect
splice/shift/unshift/pop/push inside for/foreach where one of foreach list variables
are used in splice/etc..