in reply to Re^2: pattern matching question
in thread pattern matching question

As I said above, please wrap code in <code> tags -- see Markup in the Monastery. Note that your array indices got linkified because you did not.

While there are multiple ways in which code I might write differs from the above, I would point out that /\.ms.com$/ misses an escape - you probably mean /\.ms\.com$/. An easy way to avoid missing escapes is to use \Q...\E - /\Q.ms.com\E$/.