Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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

by Random_Walk (Prior)
on Jun 18, 2007 at 12:22 UTC ( [id://621770]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $country = uc $card->country || ''; # make sure it is UC and define
    +d
    $country = '' if $country eq 'GBR';    # blat the Brits
    
  2. or download this
    my $def_country = 'GBR'
    my $country = uc $card->country || $def_country; # ensure UC & has a v
    +alue
    $country = $country eq 'GBR' ? '' : "[$country]" # blat brits, add [br
    +ackets]
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://621770]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-04-24 07:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found