in reply to Remove text within parenthesis

Try  $s =~ s{ \(parenthesis\) }{}x;