I wouldn't be surprised now if even splice might not confuse the loop as long as you are splicing parts of the array that the loop iterator hasn't reached yet.
--DrWhy
"If God had meant for us to think for ourselves he would have given us brains. Oh, wait..."
Comment on Re^2: Is it safe to append to the array you are iterating over (yes)