my $anded = Math::BigInt->new($mask) & $operand; print $anded->as_hex(), "\n";