Yes. See the "Foreach Loops" section of "perlsyn - Perl syntax":
"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."
-- Ken
In reply to Re^2: Different result for 'foreach' vs 'while shift' arrayref
by kcott
in thread Different result for 'foreach' vs 'while shift' arrayref
by gvandeweyer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |