my $var = ($condition ? $val_for_true : $val_for_false );