in reply to Find anagrams

I didn't realize that a lot of people don't know what an anagram is.

Two words are anagrams if the letters in the one are the letters in the other modulo rearrangement. For instance "tap" and "pat" are anagrams.

This program finds all of them in the input, including duplicated words, and not worrying about case.