in reply to Re: Ternary operators: a hinderance, not a help
in thread Ternary operators: a hinderance, not a help

For that matter, if the "..." is the same in your two conditions, I'd do it like this:
my $val = ( $EXPR ) ? $x : $y; my $var = sprintf( "...", $val );
OTOH, if the "..." is different in each case, I might take the trouble to put that into a hash...
my %format = ( $x => "... for x", $y => "... for y" ); my $val = ( $EXPR ) ? $x : $y; my $var = sprintf( $format{$val}, $val );
And I agree with you and with earlier replies: it's a matter of personal preference for those of us who feel a sense of "semantic unity" in certain conditional assignments.