http://www.perlmonks.org?node_id=1048967


in reply to Calculating Hamming distance (binary)

Before people go inventing too many new wheels, see this blast from the past: Hamming Distance Between 2 Strings - Fast(est) Way?.