That's the feature of short circuit and and or which can't be replicated with xor
Grandfather and ikegami already explained it perfectly.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
In reply to Re^3: 'xor' operator is not a sibling to 'or' and 'and'?
by LanX
in thread 'xor' operator is not a sibling to 'or' and 'and'?
by rsFalse
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |