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