summaryrefslogtreecommitdiffstats
path: root/bin/solve-ghost.pl
blob: ec5916548af17181ba1511543d8da491c34a3fde (plain) (blame)
1
2
3
4
5
6
7
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);