Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
No such thing as a small change
 
PerlMonks  

Re: defined ? to be : not

by johngg (Abbot)
on Jun 12, 2012 at 22:38 UTC ( #975882=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $dec eq "to be" ? print "Romeo is" : print "Romeo is not";
    
  2. or download this
    print $dec eq 'to be' ? 'Romeo is' : 'Romeo is not';
    
  3. or download this
    print 'Romeo is', $dec eq 'to be' ? '' : ' not';
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (12)
As of 2013-05-22 03:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best material for plates (tableware) is:









    Results (453 votes), past polls