With respect I don't think it is seeing $ as an RE meta-character, but interpolation is looking for a variable called $thing. My understanding is that $ only means 'end-of-text' at the end of an RE expression, unless /m is specified. Using \Q will still fix it though.