See http://perldoc.perl.org/perlsyn.html#Foreach-Loops:
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.In reply to Re: Nested Foreach Loop skipping every other element??
by hdb
in thread Nested Foreach Loop skipping every other element??
by ba1688
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |