Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by naikonta (Curate)
on Jun 18, 2007 at 12:49 UTC ( #621778=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $country = $country eq 'gbr' ? '' : uc "[$country]"
      if $country;
    
  2. or download this
    if ($country) {
      $country = $country eq 'gbr' ? '' : uc "[$country]";
    }
    
  3. or download this
    my $country = '';
    my $code = $card->country;
    $country = "[\U$code]" unless $code eq 'gbr';
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2018-07-20 06:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (426 votes). Check out past polls.

    Notices?