use Test::More *; ok((1==2 ? 3 : 4) == 4); my $a = 3; my $b = 3; my $counter = 4; ok(($a==$b ? "ok " : "not ok ") + $counter); done_testing();