$test = '(+boo)';
$match =~ /$test/;
This fails because Perl interpolates $test and sees the regexp as:
$match =~ /(+boo)/;
It doesn't like that because the + sign is a quantifier, and must follow a "real" character (not an invisible parenthesis).
How do I tell Perl that I want to evaluate a variable in a regexp as a raw string of characters, without trying to act on characters in the variable such as . * + ( )?
Is that really the only way? Seems like a pretty big limitation of Perl of it is.
[perldoc.perl.org...]