@compare = map{qr/$_/} qw'^foo bar$'; print $test unless $test =~ /$_/ foreach @compare;
In reply to Re: Regular expressions and Arrays by ccn in thread Regular expressions and Arrays by wilbur