in reply to How Much Is Too Much (on one line of code)?
Why use two lines, when one will do? (*grin*)
(And yes, I know this doesn't preserve values of zero or undef, but it seems unlikely that's desirable...)my ($country) = map { ( ! $_ or $_ eq 'gbr' ) ? '' : "[$_]" } $card- +>country;
In Section
Seekers of Perl Wisdom