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

Re: Conditional Operator Confusion

by MonkE (Hermit)
on Nov 29, 2006 at 13:59 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://586701]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (6)
As of 2024-04-16 07:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found