in reply to matching elements in a list in a logical OR fashion

my @array = qw( foo bar baz ); print grep(/^$bigstring$/, @array)? "match" : "no match","\n"; try that.
  • Comment on Re: matching elements in a list in a logical OR fashion