This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
pod2usage2.t is not readily portable to VMS either
[perl5.git] / t / pod / include.t
... / ...
CommitLineData
1BEGIN {
2 use File::Basename;
3 my $THISDIR = dirname $0;
4 unshift @INC, $THISDIR;
5 require "testp2pt.pl";
6 import TestPodIncPlainText;
7}
8
9my %options = map { $_ => 1 } @ARGV; ## convert cmdline to options-hash
10my $passed = testpodplaintext \%options, $0;
11exit( ($passed == 1) ? 0 : -1 ) unless $ENV{HARNESS_ACTIVE};
12
13
14__END__
15
16
17=pod
18
19This file tries to demonstrate a simple =include directive
20for pods. It is used as follows:
21
22 =include filename
23
24where "filename" is expected to be an absolute pathname, or else
25reside be relative to the directory in which the current processed
26podfile resides, or be relative to the current directory.
27
28Lets try it out with the file "included.t" shall we.
29
30***THIS TEXT IS IMMEDIATELY BEFORE THE INCLUDE***
31
32=include included.t
33
34***THIS TEXT IS IMMEDIATELY AFTER THE INCLUDE***
35
36So how did we do???