in reply to Nested Foreach Loop skipping every other element??
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Nested Foreach Loop skipping every other element??
by ba1688 (Novice) on Feb 19, 2014 at 16:38 UTC | |
by hdb (Monsignor) on Feb 19, 2014 at 16:47 UTC | |
by vinoth.ree (Monsignor) on Feb 19, 2014 at 17:00 UTC |