Ternary operator



my $var;
if (COND) {
    $var = A;
} else {
    $var = B;
}

my $var = COND ? A : B;