in reply to Do I need to do escaping in my regex check?
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
|
|---|