Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2018-12-19 05:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many stories does it take before you've heard them all?







    Results (83 votes). Check out past polls.

    Notices?