The obvious choice for a high-precedence logical xor is ^^. It's consistent with && and ||, and it doesn't conflict with anything already in the language.sub true { return 1; } sub True { return 2; } if (true() xor True()) { print "xor is true.\n"; } if (true() ^ True()) { print "^ is true.\n"; } __END__ ^ is true.
In reply to Re: Re: Re: Re: Implication operator
by chipmunk
in thread Implication operator
by kaatunut
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |