my $match = "\\well "; my $text = "\\well don't you know it"; $text =~ s/\Q$match//; print "$text\n"; __output__ don't you know it
_________
broquaint.
In reply to Re: using a scalar in a regex with backslashes
by broquaint
in thread using a scalar in a regex with backslashes
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |