in reply to Re^3: Comparing string to array elements
in thread Comparing string to array elements

Why not

The example I gave you was intended to point you in this direction. My example shows how to slurp a file into a scalar variable. Then split that with something like my @terms = split ' ', $terms_text.