my $failmsg = '\*E'; # Single quotes prevent interpolation my $failmsg = '[*]E'; # Character class makes it not special. my $failmsg = "*E"; if (index($_, $failmsg) >= 0) # Don't use a regexp.
In reply to Re^2: Problem using value of variable in a regular expression
by JavaFan
in thread Problem using value of variable in a regular expression
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |