Think about Loose Coupling | |
PerlMonks |
Perldoc's explanation of the difference between '&&' and 'and' has me confusedby LittleJack (Beadle) |
on Jul 05, 2021 at 04:38 UTC ( [id://11134647]=perlquestion: print w/replies, xml ) | Need Help?? |
LittleJack has asked for the wisdom of the Perl Monks concerning the following question: To quote:
and then:
Maybe it's just me, but these things seem to be the same:
What am I missing? Any real-life examples of how the two would behave differently gratefully received. Update: Thanks everyone for your input, very helpful and I get it now. Where do I put in a patch request for Perldoc to be improved though? The sentence 'This means that it short-circuits: the right expression is evaluated only if the left expression is true.' appears to refer to the clause 'the very low precedence' in the previous sentence, i.e. 'Very low precedence means that the right expression is evaluated only if the left expression is true'.
Back to
Seekers of Perl Wisdom
|
|