http://www.perlmonks.org?node_id=594186


in reply to Re^2: Mutable foreach list?
in thread Mutable foreach list?

Empirical evidence suggests ;) the list given to foreach (...) is not being re-evaluated upon every iteration -- though I wouldn't want to rely on it... As Fletch already said, just "don't muck with arrays you're looping over".