summaryrefslogblamecommitdiffstats
path: root/bin/solve-xghost.pl
blob: aea1872e84a4deeff507dab87da497fdcbfb2bae (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                   


                          
                          
 
                                         


                                                             
#!/usr/bin/env perl
use strict;
use warnings;
use Games::Word::Wordlist;
# PODNAME: solve-xghost.pl

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