in reply to Re: How Much Is Too Much (on one line of code)?
in thread How Much Is Too Much (on one line of code)?
(This differs from the original if $card->country starts off as uppercase GBR, or if $card->country is 0 or undef or some overloaded object that acts false, but I'm guessing that's a good thing.)my $country = uc("[" . $card->country . "]"); $country = '' if $country eq "[GBR]" || $country eq "[]";
|
|---|