in reply to Re^3: modify the contents of an array
in thread modify the contents of an array

Perhaps the issue is also one of readability, I had to do a double take because you used colons as regex delimiters. I'd use tall or fat ones, like '|' or '#'.