@words=qw(qr/have/ qr/regex/);
You probably meant @words = (qr/have/, qr/regex/);. Since qw/ .. / always returns a list of strings, you are trying to match the text against the string qr/have/, not against a precompiled regex.
In reply to Re: Problem with pre-compiled regex
by moritz
in thread Problem with pre-compiled regex
by saranrsm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |