in reply to logical Exclusive Or, xor
The results of an XOR always depend on both operands, so it always evaluates both and thus is useless as far as control flow is concerned. Using XOR is the same as just writing the operands separately if you're not interested in the result.
That code looks more like LISP than Perl if I may comment btw, and the first thing I'd do if I ran across it is rewrite. Use naked blocks, next and last in Perl, that's easier to read and just as efficient.
Makeshifts last the longest.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: logical Exclusive Or, xor
by Abigail-II (Bishop) on Oct 14, 2002 at 14:11 UTC | |
by Aristotle (Chancellor) on Oct 14, 2002 at 14:22 UTC |