Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Strange interaction between print and the ternary conditional operator

by jwkrahn (Monsignor)
on Feb 20, 2020 at 07:20 UTC ( #11113229=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    print 'foo, ', 1 ? 'yes' : 'no',  ' bar';
    
  2. or download this
    print 1 ? 'yes' : 'no',  ' bar';
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2020-05-26 16:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (150 votes). Check out past polls.

    Notices?