in reply to Re^2: Counting frequency of expressions in a string
in thread Counting frequency of expressions in a string

You are of course quite right. The hidden story is that there was a .*? in there following a \G. I realised the anchor and wild card were redundant and removed them, but forgot to remove the /s.

So the further lesson is: look, then look again. And each time you make a change, look twice more. That time I only looked once more. :)


Perl is Huffman encoded by design.