for (@spiel) { if (m/$code1/ and m/$code2/) {...