This queue is for tickets about the Regexp-Grammars CPAN distribution.

Report information
The Basics
Id:
66254
Status:
new
Priority:
Low/Low

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

BugTracker
Severity:
Unimportant
Broken in:
1.012
Fixed in:
(no value)



Subject: objrule exposes internal data
#!/usr/bin/perl use Regexp::Grammars; my $gr = qr { <main> <objrule: main> foo # <stuff> # <rule: stuff> # bar }x; sub new { use Data::Dumper; print Dumper \@_; bless {}; } 'foo bar' =~ $gr; The output of this program is: $VAR1 = [ 'main', { '@' => {}, '!' => '-1' } ]; The "@" and "!" keys are passed to the "new" constructor. These hash keys are not documented so I assume they are not meant to be seen. I suggest that they be removed before the hash is passed to the constructor. If you include the 3 commented lines in the grammar, there will be a "~" hash key too.


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.