Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

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

by imp (Priest)
on Jun 18, 2007 at 12:33 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://621773]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (3)
As of 2024-04-19 21:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found