if ($foo eq $bar){ print "yep!\n"; } elsif ($foo eq $baz){ print "yep!\n"; } elsif ($foo eq $boo){ print "yep!\n"; }