Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^3: 'xor' operator is not a sibling to 'or' and 'and'?by ikegami (Patriarch) |
on Dec 19, 2019 at 20:17 UTC ( [id://11110401]=note: print w/replies, xml ) | Need Help?? |
No, that's completely wrong. The reason $TRUE and $TRUE doesn't necessarily return 1 has nothing to do with why $TRUE xor $TRUE doesn't return 1. $TRUE and $TRUE doesn't necessarily return 1 because it's more useful to return its RHS. $TRUE xor $TRUE doesn't return 1 because that would be wrong.
In Section
Seekers of Perl Wisdom
|
|