#!/nix/store/ww69rb7srifikvilg39q4v8n9h1zcssf-perl-5.38.2/bin/perl -I/nix/store/ww69rb7srifikvilg39q4v8n9h1zcssf-perl-5.38.2/lib/perl5/site_perl -I/nix/store/06fr3q7ma2bmzd67l6gxqf9nzfkz07in-perl5.38.2-File-ShareDir-Install-0.14/lib/perl5/site_perl -I/nix/store/j6lh325fyplb2rq2mjkz4gfcrnc11m73-perl5.38.2-Test-Deep-1.204/lib/perl5/site_perl -I/nix/store/snif5m95qmbxgyr9187dykd6p8hd8c6j-perl5.38.2-Class-Tiny-1.008/lib/perl5/site_perl -I/nix/store/ly4xmnnx10s5hrl6y1lbihzwilg06ngi-perl5.38.2-File-ShareDir-1.118/lib/perl5/site_perl -I/nix/store/71n823r7vpwq71xgfqbx6ri2x08252lv-perl5.38.2-Class-Inspector-1.36/lib/perl5/site_perl -I/nix/store/ivzdf6qgg6wr81gic02jrff35w0is8jg-perl5.38.2-Lingua-EN-Inflect-1.905/lib/perl5/site_perl -I/nix/store/yqjdcqimmz3a1ls4zsj7dvliyfsijph5-perl5.38.2-Path-Tiny-0.144/lib/perl5/site_perl -I/nix/store/jsgnj7xyzlxk497pww7kb78rc4qpmd6j-perl5.38.2-Pod-Parser-1.66/lib/perl5/site_perl -I/nix/store/d8vmp8r9k5889gqp7zlkars6lw9nsdpi-perl5.38.2-Pod-Spell-1.26/lib/perl5/site_perl
use 5.008;
use strict;
use warnings;

our $VERSION = '1.26';

use Pod::Spell;

if ($] ge '5.008001') {
  # Try to get the encoding from the locale
  my $encoding = eval {
    require POSIX;
    POSIX::setlocale(POSIX::LC_CTYPE(), '');
    require I18N::Langinfo;
    I18N::Langinfo::langinfo(I18N::Langinfo::CODESET())
  };

  if ($encoding) {
    binmode(STDOUT, ":encoding($encoding)");
  }
}

if(@ARGV) {  # iterate over files, sending to STDOUT
  foreach my $x (@ARGV) {
    Pod::Spell->new->parse_from_file($x, '-');
  }
} else {     # take from STDIN, send to STDOUT
  Pod::Spell->new->parse_from_filehandle();
}

__END__

=pod

=encoding UTF-8

=for :stopwords Sean M. Burke Caleb Cushing Olivier Mengué

=head1 NAME

podspell - pod spell checking command line interface

=head1 VERSION

version 1.26

=head1 SYNOPSIS

    % podspell Thing.pm | ispell

=head1 BUGS

Please report any bugs or feature requests on the bugtracker website
L<https://rt.cpan.org/Public/Dist/Display.html?Name=Pod-Spell> or by email
to L<bug-Pod-Spell@rt.cpan.org|mailto:bug-Pod-Spell@rt.cpan.org>.

When submitting a bug or request, please include a test-file or a
patch to an existing test-file that illustrates the bug or desired
feature.

=head1 AUTHORS

=over 4

=item *

Sean M. Burke <sburke@cpan.org>

=item *

Caleb Cushing <xenoterracide@gmail.com>

=back

=head1 COPYRIGHT AND LICENSE

This software is Copyright (c) 2023 by Olivier Mengué.

This is free software, licensed under:

  The Artistic License 2.0 (GPL Compatible)

=cut
