in reply to 'either or' value unit test case in Test::Simple or Test::More

# Test::Simple or Test::More ok($var eq 'a' || $var eq 'b', "test name");

Update: map will help you avoid evaluating the expression twice. (Be careful about context.)
( Oops, added missing parens. Thanks shenme )

# Test::Simple or Test::More ok((map { $_ eq 'a' || $_ eq 'b' } $var), "test name");

Update: Or you could use a regexp.

# Test::More like($var, qr/^(?:a|b)\z/, "test name");