4 use ExtUtils::Manifest qw(maniread);
6 eval "use Pod::Spell 1.01";
7 plan skip_all => "Pod::Spell 1.01 required for spellchecking POD" if $@;
8 my $manifest = maniread();
9 my @pod = sort grep !/^inc/ && /\.(pm|pl|pod|PL)$/, keys %$manifest;
10 plan tests => scalar(@pod);
56 local %Pod::Wordlist::Wordlist = %Pod::Wordlist::Wordlist;
57 for my $stop (@stopwords) {
58 $Pod::Wordlist::Wordlist{$stop} = 1;
62 # https://bugs.launchpad.net/ubuntu/+source/aspell/+bug/71322
66 my $check_fh = File::Temp->new;
67 my $check_filename = $check_fh->filename;
69 or die "Cannot open $file for spell check: $!\n";
70 Pod::Spell->new->parse_from_filehandle(\*POD, $check_fh);
73 my @out = `aspell list <$check_filename`;
74 unless (ok(@out == 0, "spell check $file")) {
76 print "# $_\n" for @out;
78 open my $fh, "<", $check_filename;