Perl extension for find anagrams of a word