I had the same problem. I think
$window =~ eval 'qr{'.$regexp.'}' ;should work, and not produce the error.
In reply to Re: Unrecognized escape \Q passed through in regex
by HelenCr
in thread Unrecognized escape \Q passed through in regex
by Articuno
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |