Your post is hard to read because of missing <code> tags!
(If you had logged in you'd be capable to edit and fix it.)
Anyway my guess is that you need quotemeta resp. \Q because parens () are metacharacters in regexes, which need to be escaped.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In reply to Re^3: Removing a string-element from an array of strings
by LanX
in thread Removing a string-element from an array of strings
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |