in reply to Re: Re: Mod-2 add 2 binary files
in thread Mod-2 add 2 binary files
Seems to do the right thing to me...$foo = "baz"; $bar = "foo"; print unpack("B*", $foo); print unpack("B*", $bar); print unpack("B*", ($bar ^ $foo)); __END__ 011000100110000101111010 011001100110111101101111 000001000000111000010101
thor
|
|---|