use strict; use warnings; my $foo = 'boo'; if ($foo eq 'goo' || 'moo') { print "$foo\n"; } #### if ($foo eq 'goo' || $foo eq 'moo') {