Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Conditional Operator Confusion

by MonkE (Hermit)
on Nov 29, 2006 at 13:59 UTC ( #586701=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
            ($_>5 ? $x : $y) = 'bar';
            print "x=$x, y=$y\n";
    }
    
  2. or download this
    x=baz, y=bar
    x=baz, y=bar
    ...
    x=bar, y=bar
    x=bar, y=bar
    x=bar, y=bar
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2014-09-01 20:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (17 votes), past polls