in reply to Re: Re: Matching arrays?
in thread Matching arrays?

what's wrong with my original code

You original code below:
if (@text =~ /11/ || @text =~ /are/) { ...

Ok, the problem with your code is that you are operating the array text in scalar context, which is the number of elements in the array. So you code is actually doing this:
if ('5' =~ /11/ || '5' =~ /are/) { ...

And of cause it will not match anything.