my $variable = $condition ? 'value' : undef;