in reply to How Much Is Too Much (on one line of code)?
I personally would probably do the following. First declare the initial value. Then perform any business logic to control default countries. Finally assign formatting to the final result.my $country = $card->country; $country &&= $country eq 'gbr' ? '' : uc "[$country]";
- Millermy $country = $card->country; $country = '' if $country eq 'gbr'; $country &&= uc "[$country]";
|
|---|