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;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: How Much Is Too Much (on one line of code)?
by Anonymous Monk on Jun 21, 2007 at 09:04 UTC |
In Section
Seekers of Perl Wisdom