in reply to Dynamic regexp from array values

If these are fixed strings, as your example suggests, I'd check existance in a hash constructed with the strings as keys. That will be much faster than sifting through a collection of regexen.

my %match; @match{@strings) = (); # to test a var, $check_this if (exists $match{$check_this}) { # ... }

Update: This doesn't act like a regex, of course. The presence of a substring in $check_this will not test true. You can adapt by parsing how you expect the strings to appear, or else by iterating the array of @strings over substr instead of a regex - no hash involved there.

After Compline,
Zaxo