in reply to Remove text within parenthesis

To avoid the interpretation of parentheses inside $1, use \Q:
$s =~ s/\Q$1//;

Note that this is still not the desired "bla bla somestring" because there are two spaces after the bla bla.

لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^2: Remove text within parenthesis
by firmament (Novice) on May 08, 2013 at 07:32 UTC
    Thanks a lot for the \Q advice, very interesting.