in reply to Re^2: Regular expression match trouble with "+"
in thread Regular expression match trouble with "+"

You're compiling and executing the return value of m/$b/i. Did you mean eval "m/$b/i"?

eval "m/$b/i" is no good either. It doesn't solve the problem. In fact, it worsens it by adding three new characters ($, @ and /) to the list of characters that will cause problems.