in reply to Perl Array - What an array contains

I'm not sure I understand your problem very well, in your first sentence you talk about a string but show something that looks like an array... See How do I post a question effectively?

Anyway, to check if a string is included in another, the easiest way is to use the index function. Or to check if a string is present in an array, use grep.

  • Comment on Re: Perl Array - What an array contains