Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: "x ? y : z" notation

by Old_Gray_Bear (Bishop)
on Mar 26, 2009 at 00:32 UTC ( [id://753302]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    <condition> ? <do if condition was true> : <do if it wasn't>
    
  2. or download this
    $x == 1 ? print "x was '1'" : print "x was something else";
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2024-04-25 19:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found