if ($after =~ /$scur/) { do something; } #### if ($after =~ /\$scur/) { do something; }