P is for Practical | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
> But in perlop operators and and or are not named being conditional.
https://perldoc.perl.org/perlop#Logical-And
Binary "and" returns the logical conjunction of the two surrounding expressions. It's equivalent to && except for the very low precedence. This means that it short-circuits: the right expression is evaluated only if the left expression is true. https://perldoc.perl.org/perlop#C-style-Logical-And
Binary "&&" performs a short-circuit logical AND operation. That is, if the left operand is false, the right operand is not even evaluated. Scalar or list context propagates down to the right operand if it is evaluated. what do you mean by "named being conditional" and how could the description be clearer?
Cheers Rolf In reply to Re: Situation where warning "Found = in conditional, should be" seems obsolete (documentation)
by LanX
|
|