Seems like you want grep /^\Q$value$/, ... (see quotemeta ), but I agree with brother choroba that you are overcomplicating things.
°) like "None \\(Private Label\\)" , please note the need for double escaping aka slasheritis
²) added missing \Q
³) see also 99 Perl Problems ;-)
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In reply to Re: Do I need to do escaping in my regex check?
by LanX
in thread Do I need to do escaping in my regex check?
by stevieb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |