summaryrefslogtreecommitdiffstats
path: root/bin/solve-ghost.pl
diff options
context:
space:
mode:
Diffstat (limited to 'bin/solve-ghost.pl')
-rw-r--r--bin/solve-ghost.pl8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/solve-ghost.pl b/bin/solve-ghost.pl
new file mode 100644
index 0000000..ec59165
--- /dev/null
+++ b/bin/solve-ghost.pl
@@ -0,0 +1,8 @@
+#!/usr/bin/perl
+use strict;
+use warnings;
+use Games::Word::Wordlist;
+
+my $start = $ARGV[0] or die "Usage: $0 <word_prefix>\n";
+my $wl = Games::Word::Wordlist->new('/usr/share/dict/words');
+print "$_\n" for $wl->words_like(qr/^\Q$ARGV[0]/i);