Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Question about ternary condition

by fmerges (Chaplain)
on Jun 28, 2005 at 10:13 UTC ( #470555=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    ( (exists $hash{$_} and $hash{$_} eq 'on') ? $result = 'OK' : $result 
    +) = 'KO';
    
  2. or download this
       (exists $hash{$_} and $hash{$_} eq 'on')
          ? ($result = 'OK')
          : ($result = 'KO');
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://470555]
help
Chatterbox?
and one hand claps...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2018-07-19 21:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (420 votes). Check out past polls.

    Notices?