in reply to matching strings...

Hi Richard,

Your first way will work, except that you need to use the binding operator =~ instead of the equality operator eq:

if ($string =~ m/(this|or_this|or_that)/i)
Also note that the m in the matching operator is not strictly necessary, as you are using the default delimiters (/). It is only necessary if you use different delimiters, e.g. m#///#, where different delimiters are used to avoid leaning toothpick syndrome.

For more information on regular expressions perlre is your first stop.

CU
Robartes-