Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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

by duelafn (Vicar)
on Jun 18, 2007 at 15:41 UTC ( #621809=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $country = $card->country || 'gbr';
    $country = $country eq 'gbr' ? '' : uc "[$country]";
    
  2. or download this
    my $country = $card->country;
    $country = (!defined($country) or $country eq 'gbr') ? '' : uc "[$coun
    +try]";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://621809]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (9)
As of 2018-06-24 17:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (126 votes). Check out past polls.

    Notices?