in reply to strict refs and REGEXP error

The only thing you're using as an array ref in that snippet is $codes.

I'm guessing $codes gets set to "description" at some point, overwriting the array reference.

Edit: Hmmm, looking at the additional info in your 2nd post, I take that back. That's just WIERD, since you just dereferenced the same array ref in the previous conditional without an error. Odd...
--
Mike