Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: conditional print. Is correct to use it?

by choroba (Cardinal)
on Oct 27, 2020 at 12:06 UTC ( [id://11123206]=note: print w/replies, xml ) Need Help??


in reply to Re: conditional print. Is correct to use it?
in thread conditional print. Is correct to use it?

> ($fo + 0 || 8) is parsed as ($fo + (0 || 8)) due to precedence.

It's not.

perl -MO=Deparse,-p -e 'print $fo + 0 || 8' print((($fo + 0) || 8));

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-04-26 04:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found