Skip Menu |
 

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

Report information
The Basics
Id: 66254
Status: new
Priority: 0/
Queue: Regexp-Grammars

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

Bug Information
Severity: Unimportant
Broken in: 1.012
Fixed in: (no value)



Subject: objrule exposes internal data
Download (untitled) / with headers
text/plain 673b
#!/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 is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

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