I wouldn't mind "wasting" a line on a default assignment in a case like that (and I often do it this way):
my $send_now_button = ''; # that's the default value; $send_now_button = qq( ...blah blah ... ) if ( $auth{SEND} and status == 1 and $approved and ! $send_now );
In reply to Re^2: Ternary operators: a hinderance, not a help
by graff
in thread Ternary operators: a hinderance, not a help
by Tanalis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |