my @strings = qw/string1 string2 string3/; for (@strings) { if (/meine regex/) { # mache etwas } else { # mache etwas } }