in reply to How do I search strings with parenthisis

You have to quote $field or else the parentheses will act as metacharacters in the regex. Use if ($_ =~ /\Q$field\E/) instead.
  • Comment on Re: How do I search strings with parenthisis

Replies are listed 'Best First'.
Re: Re: How do I search strings with parenthisis
by Anonymous Monk on May 05, 2004 at 16:08 UTC
    Thks that worked.