in reply to Problem using a variable for Regular expression test pattern
How to prevent perl from treating them as a special character?
quotemeta, or \Q.