When you have to write code that reads left to right and then right to left you are trying to do two things on the same line that lacks clarity.
If I saw this in production code I would hate forever the person who wrote it.
How about this instead,
my $country = (not $card->country) ? q{} : $card->country eq 'gbr' ? q{} : uc "[$country]";
It is only a little more verbose but it is clear at presenting the results of any specific situation.
In reply to Re: How Much Is Too Much (on one line of code)?
by Herkum
in thread How Much Is Too Much (on one line of code)?
by Ovid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |