in reply to
Testing for a string value within an array
Try
grep
.
You're receiving the errors because you're trying to access an array index using a string. You are also using
exists
, which is a hash function
Comment on
Re: Testing for a string value within an array
In Section
Seekers of Perl Wisdom