PPR
view release on metacpan or search on metacpan
t/document_self.t view on Meta::CPAN
use strict;
use warnings;
use Test::More;
BEGIN{
BAIL_OUT "A bug in Perl 5.20 regex compilation prevents the use of PPR under that release"
if $] > 5.020 && $] < 5.022;
}
plan tests => 1;
use PPR;
my $source = do { local (@ARGV, $/) = $INC{'PPR.pm'}; readline; };
ok $source =~ m{ \A (?&PerlDocument) \Z $PPR::GRAMMAR }xms => 'Matched own document';
done_testing();
( run in 0.668 second using v1.01-cache-2.11-cpan-0bb4e1dffa6 )