Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: ?: = Obfuscation?

by ikegami (Pope)
on Dec 01, 2006 at 20:31 UTC ( #587298=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $x = $y > 5 ? ($y = 0) : ($y = 1);
    
  2. or download this
    my $x = ($y = $y > 5 ? 0 : 1);
    
  3. or download this
    $y = $y > 5 ? 0 : 1;
    my $x = $y;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (10)
As of 2017-10-23 12:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (279 votes). Check out past polls.

    Notices?