in reply to How Much Is Too Much (on one line of code)?
I think it's too much.
my $country = $card->country; $country = '' if $country eq 'gbr'; $country = uc("[$country]") if $country;
That, or:
my $country = $card->country; if ($country and $country ne 'gbr') { $country = uc("[$country]"); } else { $country = ''; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: How Much Is Too Much (on one line of code)?
by kwaping (Priest) on Jun 18, 2007 at 17:15 UTC |