do { print "yep"; last; } if $test eq $_ for( qw( foo bar baz ) );