- or download this
push(@arrCompletedChains, $strChain);
- or download this
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.
- or download this
use List::Util 'first';
...
@arrWorkingCompletedChains = grep !$to_delete{ $_ }, @arrWorkingComple
+tedChains;