Remove the quotes around the qr ...
(I removed the spaces because I'm lazy, not because I had to)my $pattern = qr/^(Orange|Apple|Grape|Halibut)$/ix;
In reply to Re Why doesn't my qr// work?
by Tanktalus
in thread Why doesn't my qr// work?
by equant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |