#!/usr/bin/perl use Anagram26; use strict; my $file = shift; my $words = build_word_list($file, @ARGV); add_more_words($words, qw( a I I'm you're he's she's we're they're I'll you'll he'll she'll we'll they'll I've you've we've they've it's that's what's isn't can't won't don't doesn't )); print "Anagrams of '@ARGV':\n"; while (my $word = get_anagram($words)) { print "-> $word\n"; } # or wait until they're all computed # and get them in a hash via: # my $anagram_hash = anagrams($words);