$p = '4+5*6'; $str =~ m/$p/; # Doesn't perform arithmetic. $p = 'm/a/'; $str =~ m/$p/; # Doesn't search for `a`. $p = 's/a/b/'; $str =~ m/$p/; # Doesn't perform a substitution.