Also realized that not the [] are the problem, it is the matching string.
The unprotected "()" parenthesis gave a problem!
This too would been fine too:
my $pattern = 'Category\("notestrecord"\)';
I am tired need to go home. :-)
But yes I should use quotemeta, specially because I am reading it from parameters. :-)
Thank you!
Comment on Re: Problem with input strings that have "[]" brackets