regex - Perl regular expression (using variable as search string with perl operator chars included)
I would say get into the habit of using the qr// construct for regular expressions and escaping special regex chars if literal is needed. Quotemeta will quote ALL special regex chars. If you just want to find a literal string in another, use index() inste...