Lots of spring cleaning. (No functional changes.)
[p5sagit/p5-mst-13.2.git] / t / pod / include.t
CommitLineData
360aca43 1BEGIN {
dbd1b0a2 2 chdir 't' if -d 't';
3 unshift @INC, '../lib';
4 unshift @INC, './pod';
360aca43 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???