Skip Menu |

This queue is for tickets about the PPR CPAN distribution.

Report information
The Basics
Id: 122161
Status: resolved
Priority: 0/
Queue: PPR

People
Owner: Nobody in particular
Requestors: MAUKE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.000005
Fixed in: (no value)



Subject: adding optional subgroup causes match failures later
With '(?&PerlStatement)?' commented out: $ cat ppr-bah.pl #!/usr/bin/env perl use strict; use warnings; use PPR; my $code = <<'_EOT_'; use constant PRESSURE => <<X; X <<<<<<A 42 A _EOT_ $code =~ m{ \A (?&PerlUseStatement) (?&PerlOWS) # (?&PerlStatement)? <<<<<<A (?&PerlOWS) ( (?&PerlLiteral) ) $PPR::GRAMMAR }x or die "No match"; print "Found literal: [$1]\n"; __END__ $ perl ppr-bah.pl Found literal: [42] With '(?&PerlStatement)?' active: $ cat ppr-bah.pl #!/usr/bin/env perl use strict; use warnings; use PPR; my $code = <<'_EOT_'; use constant PRESSURE => <<X; X <<<<<<A 42 A _EOT_ $code =~ m{ \A (?&PerlUseStatement) (?&PerlOWS) (?&PerlStatement)? <<<<<<A (?&PerlOWS) ( (?&PerlLiteral) ) $PPR::GRAMMAR }x or die "No match"; print "Found literal: [$1]\n"; __END__ $ perl ppr-bah.pl No match at ppr-bah.pl line 17.
Subject: Re: [rt.cpan.org #122161] adding optional subgroup causes match failures later
Date: Mon, 26 Jun 2017 08:26:44 +1000
To: bug-PPR [...] rt.cpan.org
From: Damian Conway <damian [...] conway.org>
Thanks, Lukas. This problem is now solved in the latest release. Much appreciated, again! Damian