summaryrefslogtreecommitdiffstats
path: root/bin/solve-ghost.pl
blob: c65cd91365b903f26537947dcf167e09da184f29 (plain) (blame)
1
2
3
4
5
6
7
8
#!/usr/bin/env perl
use strict;
use warnings;
use Games::Word::Wordlist;

die "Usage: $0 <word_prefix>\n" unless @ARGV;
my $wl = Games::Word::Wordlist->new('/usr/share/dict/words');
print "$_\n" for $wl->words_like(qr/^\Q$ARGV[0]/i);