The Anagram application searches a dictionary for anagrams of words supplied on the command line.
$ anagram teaching code
Anagrams of teaching: cheating, teaching
Anagrams of code: code, coed
It is not (currently) smart enough to deal with multi-word anagrams.
This code is Copyright 2008 Dave Thomas, The Pragmatic Programmers.
It is released under the terms of the MIT License. See the file LICENSE.