Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: ?: (conditional operator)

by Masem (Monsignor)
on Aug 23, 2001 at 17:46 UTC ( [id://107321]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    print ($x ? $x.="hello" : $x.="Bye");
    
  2. or download this
    print (  ( $x ? $x.="hello" : $x ) .="Bye");
    
  3. or download this
    print ( $x ? $x.="hello" : ( $x.="Bye" ) );
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (7)
As of 2024-04-18 02:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found