$ perl -E"say '112233'^'aabbcc'" PPPPPP $ perl -E"say sprintf '%x', 0x112233 ^ 0xaabbcc" bb99ff