This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
As well as PERL5LIB, remove PERLLIB and PERL5OPT from the environment.
[perl5.git] / t / pod / podchkenc.t
CommitLineData
1bc4b319
SH
1#!/usr/bin/perl
2BEGIN {
3 use File::Basename;
4 my $THISDIR = dirname $0;
5 unshift @INC, $THISDIR;
6 require "testpchk.pl";
7 import TestPodChecker;
8}
9
10# this tests Pod::Checker accepts =encoding directive
11
12my %options = map { $_ => 1 } @ARGV; ## convert cmdline to options-hash
13my $passed = testpodchecker \%options, $0;
14exit( ($passed == 1) ? 0 : -1 ) unless $ENV{HARNESS_ACTIVE};
15
16__END__
17
18=encoding utf8
19
20=encode utf8
21
22dummy error
23
24=head1 An example.
25
26'Twas brillig, and the slithy toves did gyre and gimble in the wabe.
27
28=cut
29