in reply to Metric for confidence of complex match

Care to give us a few more candiates and the order you think you would like to see them matched? For example how do the following sets "sort" (assuming the same coding used for XYZ):

(0, 1, 3, 3, 1), (0, 2, 2, 2, 2), (1, 1, 2, 2, 2), (1, 1, 1, 2, 3), (0, 0, 3, 3, 3),

Perl is Huffman encoded by design.