in reply to How Much Is Too Much (on one line of code)?
our $DEFAULT_COUNTRY = 'gbr'; [...] my $country = $card->country; if ($country) { if ($country eq $DEFAULT_COUNTRY) { $country = ''; } else { $country = '[' . uc($country) . ']'; } }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: How Much Is Too Much (on one line of code)?
by Ovid (Cardinal) on Jun 18, 2007 at 12:49 UTC |