Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: ?: = Obfuscation?

by imp (Priest)
on Dec 01, 2006 at 16:30 UTC ( #587230=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # With ternary
    my $x = exists $hash{key}
    ...
    else {
        $x = 'default';
    }
    
  2. or download this
    # With ternary
    my $x = $x > 5
    ...
       $x++;
    }
    
  3. or download this
    my $x = $y > 5 ? ($y = 0) : ($y = 1);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://587230]
help
Chatterbox?
[LanX]: ♪ ♫ ♬ ... rain in the cloths ... ♪ ♫ ♬

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (11)
As of 2017-07-25 09:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (369 votes). Check out past polls.