in reply to Problem with input strings that have "[]" brackets

You need quotemeta for ()
my $pattern = quotemeta 'Category("notestrecord")';

Replies are listed 'Best First'.
Re^2: Problem with input strings that have "[]" brackets
by Laszlo (Novice) on May 08, 2015 at 17:45 UTC
    Yes it worked!