Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: Conditional Operator Confusion

by Herkum (Parson)
on Nov 30, 2006 at 16:44 UTC ( #586999=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $result = $a == $b
    
  2. or download this
    my $result = $a == $b ? 1 : 0;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2017-02-22 22:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (337 votes). Check out past polls.