in reply to Hex String XOR

$a = 0xaabbcc; $b = 0x112233; printf '%X', $a ^ $b;

Replies are listed 'Best First'.
Re^2: Hex String XOR
by Marshall (Canon) on Mar 12, 2012 at 09:21 UTC
    I think this is good as far as it goes, but I would assume that the OP wants to XOR some humongous things that cannot be represented as simple Perl numeric scalar values? In this case, use hex() function.
    my $x = "aabbcc"; my $y = "112233"; printf '%x', hex($x) ^ hex($y); #bb99ff
    This causes integer overflow if $x and $y are "too big".