foreach (@array) { # add or remove elements in @array... }