Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: How Much Is Too Much (on one line of code)?

by imp (Priest)
on Jun 18, 2007 at 12:33 UTC ( #621773=note: print w/ replies, xml ) Need Help??


in reply to How Much Is Too Much (on one line of code)?

I don't mind the ternary, but including the postfix is excessive in my opinion. I'd prefer this:
my %ignore = ( gbc => 1); my $country = $card->country; if ($country) { $country = $ignore{$country} ? '' : uc($country); } print $country;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://621773]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (10)
As of 2016-06-24 21:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (322 votes). Check out past polls.