1N/ABEGIN {
1N/A use File::Basename;
1N/A my $THISDIR = dirname $0;
1N/A unshift @INC, $THISDIR;
1N/A require "testp2pt.pl";
1N/A import TestPodIncPlainText;
1N/A}
1N/A
1N/Amy %options = map { $_ => 1 } @ARGV; ## convert cmdline to options-hash
1N/Amy $passed = testpodplaintext \%options, $0;
1N/Aexit( ($passed == 1) ? 0 : -1 ) unless $ENV{HARNESS_ACTIVE};
1N/A
1N/A
1N/A__END__
1N/A
1N/A
1N/A=pod
1N/A
1N/AThis is a test to see if I can do not only C<$self> and C<method()>, but
1N/Aalso C<< $self->method() >> and C<< $self->{FIELDNAME} >> and
1N/AC<< $Foo <=> $Bar >> without resorting to escape sequences. If
1N/AI want to refer to the right-shift operator I can do something
1N/Alike C<<< $x >> 3 >>> or even C<<<< $y >> 5 >>>>.
1N/A
1N/ANow for the grand finale of C<< $self->method()->{FIELDNAME} = {FOO=>BAR} >>.
1N/AAnd I also want to make sure that newlines work like this
1N/AC<<<
1N/A$self->{FOOBAR} >> 3 and [$b => $a]->[$a <=> $b]
1N/A>>>
1N/A
1N/AOf course I should still be able to do all this I<with> escape sequences
1N/Atoo: C<$self-E<gt>method()> and C<$self-E<gt>{FIELDNAME}> and C<{FOO=E<gt>BAR}>.
1N/A
1N/ADont forget C<$self-E<gt>method()-E<gt>{FIELDNAME} = {FOO=E<gt>BAR}>.
1N/A
1N/AAnd make sure that C<0> works too!
1N/A
1N/ANow, if I use << or >> as my delimiters, then I have to use whitespace.
1N/ASo things like C<<$self->method()>> and C<<$self->{FIELDNAME}>> wont end
1N/Aup doing what you might expect since the first > will still terminate
1N/Athe first < seen.
1N/A
1N/ALets make sure these work for empty ones too, like C<< >> and C<< >> >>
1N/A(just to be obnoxious)
1N/A
1N/A=cut