in reply to Re: Re: Re: Implication operator
in thread Implication operator
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Re: Implication operator
by Fastolfe (Vicar) on Dec 11, 2000 at 23:56 UTC |