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

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