You should find some useful guidance with Bitwise Or and Exclusive Or in perlop, sprintf's %x, and hex (or possibly unpack depending on what your input string looks like).
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
In reply to Re: Perl XOR
by kennethk
in thread Perl XOR
by fixu2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |