No such thing as a small change | |
PerlMonks |
Re^2: Hints Towards Writing a Module with New Operatorsby ikegami (Patriarch) |
on Dec 20, 2009 at 08:48 UTC ( [id://813601]=note: print w/replies, xml ) | Need Help?? |
You could also use
but that relies on the fact than the true and false values returned by Perl ops are 1) always the same, and 2) numeric*. xor is definitely the way to go. * — They're also strings, but that's not relevant here.
In Section
Seekers of Perl Wisdom
|
|