Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I am getting error, Quantifier follows nothing in regex; marked by <-- HERE in m/* <-- HERE E/ at But, when I do the following, I don't get any error.$failmsg = "\*E"; if (/$passmsg/) { $result = 1; } if (/$failmsg/) { $result = 0; }
Any help is greatly appreciated.if (/$passmsg/) { $result = 1; } if (/\*E/) { $result = 0; }
|
|---|