3 BEGIN { chdir 't' if -d 't'; @INC = '../lib' }
6 my $parser = Pod::Plainer->new();
7 my $header = "=pod\n\n";
8 my $input = 'plnr_in.pod';
9 my $output = 'plnr_out.pod';
14 my $expected = $header.<DATA>;
16 open(IN, '>', $input) or die $!;
20 open IN, '<', $input or die $!;
21 open OUT, '>', $output or die $!;
22 $parser->parse_from_filehandle(\*IN,\*OUT);
24 open OUT, '<', $output or die $!;
25 my $returned; { local $/; $returned = <OUT>; }
27 unless( $returned eq $expected ) {
28 print map { s/^/\#/mg; $_; }
29 map {+$_} # to avoid readonly values
30 "EXPECTED:\n", $expected, "GOT:\n", $returned;
33 printf "ok %d\n", ++$test;
37 1 while unlink $input;
38 1 while unlink $output;
42 =head <> now reads in records
43 =head E<lt>E<gt> now reads in records
44 =item C<-T> and C<-B> not implemented on filehandles
45 =item C<-T> and C<-B> not implemented on filehandles
46 e.g. C<< Foo->bar() >> or C<< $obj->bar() >>
47 e.g. C<Foo-E<gt>bar()> or C<$obj-E<gt>bar()>
48 The C<< => >> operator is mostly just a more visually distinctive
49 The C<=E<gt>> operator is mostly just a more visually distinctive
50 C<uv < 0x80> in which case you can use C<*s = uv>.
51 C<uv E<lt> 0x80> in which case you can use C<*s = uv>.
52 C<time ^ ($$ + ($$ << 15))>), but that isn't necessary any more.
53 C<time ^ ($$ + ($$ E<lt>E<lt> 15))>), but that isn't necessary any more.
54 The bitwise operation C<<< >> >>>
55 The bitwise operation C<E<gt>E<gt>>