Think about Loose Coupling | |
PerlMonks |
Re: foreach argument modification inside loop, followed by return from loopby roboticus (Chancellor) |
on Jul 10, 2013 at 10:45 UTC ( [id://1043447]=note: print w/replies, xml ) | Need Help?? |
I'm with tobyink on this one--since you're leaving your foreach immediately after changing the array, I don't see how it could/should matter. ...roboticus When your only tool is a hammer, all problems look like your thumb.
In Section
Seekers of Perl Wisdom
|
|