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


in reply to Re^2: list of unique strings, also eliminating matching substrings
in thread list of unique strings, also eliminating matching substrings

I gave it a try to test your code. There are substrings among the output, but did not figure out why. It seems there are bugs within it. Nice code though!