if ($string =~ /$input{'variable'}/gis) { #Some processing } #### if ($string =~ /\Q$input{'variable'}/) { #blah blah blah... }