From dictionary.com: A word or phrase formed by reordering the letters of another word or phrase, such as satin to stain.
In case you played with this, and couldn't make it work, you have to feed it the word list, complete with anagrams. I.e., you can't supply 'stain', and have it find 'satin'. Rather, both words have to be present, and each word must be on a separate line.
It will also only print one of the anagrams, not all, so you have no way of referencing them. I.e., if you have 'satin', 'stain', and 'naits' (it's not a word...), only 'naits' will be printed. I'm not sure how exactly that's useful...
Some sample input would have been nice.
--Chris
e-mail jcwren