Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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 making s'mores by the fire in the courtyard of the Monastery: (22)
As of 2014-11-24 15:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (142 votes), past polls