in reply to Why doesn't my qr// work?

Remove the quotes around the qr ...

my $pattern = qr/^(Orange|Apple|Grape|Halibut)$/ix;
(I removed the spaces because I'm lazy, not because I had to)