my $var = ($conditional) ? 'assigned value' : undef;