in reply to
I need to print a string but only if it doesn't match a value in an array.
You don't want to use an array here, I bet. You want to use a hash. See the FAQ entry for "contains".
perldoc -q contains
Comment on
Re: I need to print a string but only if it doesn't match a value in an array.
In Section
Seekers of Perl Wisdom