| 1 |
#!/usr/bin/perl |
| 2 |
use 5.008001; |
| 3 |
use strict; |
| 4 |
use warnings; |
| 5 |
|
| 6 |
our $VERSION = '1.27'; |
| 7 |
|
| 8 |
use Pod::Spell; |
| 9 |
|
| 10 |
# Try to get the encoding from the locale |
| 11 |
my $encoding = eval { |
| 12 |
require POSIX; |
| 13 |
POSIX::setlocale(POSIX::LC_CTYPE(), ''); |
| 14 |
require I18N::Langinfo; |
| 15 |
I18N::Langinfo::langinfo(I18N::Langinfo::CODESET()) |
| 16 |
}; |
| 17 |
|
| 18 |
if ($encoding) { |
| 19 |
binmode(STDOUT, ":encoding($encoding)"); |
| 20 |
} |
| 21 |
|
| 22 |
if(@ARGV) { # iterate over files, sending to STDOUT |
| 23 |
foreach my $x (@ARGV) { |
| 24 |
Pod::Spell->new->parse_from_file($x, '-'); |
| 25 |
} |
| 26 |
} else { # take from STDIN, send to STDOUT |
| 27 |
Pod::Spell->new->parse_from_filehandle(); |
| 28 |
} |
| 29 |
|
| 30 |
__END__ |
| 31 |
|
| 32 |
=pod |
| 33 |
|
| 34 |
=encoding UTF-8 |
| 35 |
|
| 36 |
=for :stopwords Sean M. Burke Caleb Cushing Olivier Mengué |
| 37 |
|
| 38 |
=head1 NAME |
| 39 |
|
| 40 |
podspell - pod spell checking command line interface |
| 41 |
|
| 42 |
=head1 VERSION |
| 43 |
|
| 44 |
version 1.27 |
| 45 |
|
| 46 |
=head1 SYNOPSIS |
| 47 |
|
| 48 |
% podspell Thing.pm | ispell |
| 49 |
|
| 50 |
=head1 BUGS |
| 51 |
|
| 52 |
Please report any bugs or feature requests on the bugtracker website |
| 53 |
L<https://rt.cpan.org/Public/Dist/Display.html?Name=Pod-Spell> or by email |
| 54 |
to L<[email protected]|mailto:[email protected]>. |
| 55 |
|
| 56 |
When submitting a bug or request, please include a test-file or a |
| 57 |
patch to an existing test-file that illustrates the bug or desired |
| 58 |
feature. |
| 59 |
|
| 60 |
=head1 AUTHORS |
| 61 |
|
| 62 |
=over 4 |
| 63 |
|
| 64 |
=item * |
| 65 |
|
| 66 |
Sean M. Burke <[email protected]> |
| 67 |
|
| 68 |
=item * |
| 69 |
|
| 70 |
Caleb Cushing <[email protected]> |
| 71 |
|
| 72 |
=back |
| 73 |
|
| 74 |
=head1 COPYRIGHT AND LICENSE |
| 75 |
|
| 76 |
This software is Copyright (c) 2024 by Olivier Mengué. |
| 77 |
|
| 78 |
This is free software, licensed under: |
| 79 |
|
| 80 |
The Artistic License 2.0 (GPL Compatible) |
| 81 |
|
| 82 |
=cut |