Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Question about ternary condition

by dave_the_m (Monsignor)
on Jun 28, 2005 at 09:46 UTC ( [id://470547]=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
    ( cond ? $result = 'OK' : $result) = 'KO'
    
  3. or download this
    ($result = 'OK') = 'KO'
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2024-04-23 08:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found