ok( $var1 eq 'foo' || $var1 eq 'bar', 'either foo or bar'); #### is( $var1 eq 'foo' ? 1 : $var1 eq 'bar'? 1 : undef, 1, 'either foo or bar');