Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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;


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

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 romping around the Monastery: (6)
As of 2015-07-04 06:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (58 votes), past polls