Subject: | Infinite loop on some inputs |
Some input strings will cause the code to loop:
perl -MText::Trie=Trie -e 'Trie("","")'
perl -MText::Trie=Trie -e 'Trie("x","x")'
I guess it's any duplicate strings, but I haven't verified that in the code.