in reply to Re: foreach argument modification inside loop, followed by return from loop
in thread foreach argument modification inside loop, followed by return from loop
because I can’t imagine why you would want to pop the last element off of an array if any element in it equals '2.Don't try to analyze code logic. It's a proof-of-concept code. Perl does not care about it's logic when execute it, so you should not too.
clarity
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: foreach argument modification inside loop, followed by return from loop
by AnomalousMonk (Archbishop) on Jul 10, 2013 at 14:49 UTC | |
by vsespb (Chaplain) on Jul 10, 2013 at 14:59 UTC | |
|
Re^3: foreach argument modification inside loop, followed by return from loop
by locked_user sundialsvc4 (Abbot) on Jul 12, 2013 at 04:19 UTC |