Red Hat Bugzilla – Bug 187872
Errors using Parse::RecDescent
Last modified: 2007-11-30 17:11:29 EST
Description of problem:
I get a number of errors of this form when using Parse::RecDescent:
Use of uninitialized value in substr at
/usr/lib/perl5/vendor_perl/5.8.8/Parse/RecDescent.pm line 3033.
I get a number of similar errors in generated code, too.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Write a Parse::RecDescent grammar.
2. Compile it with "perl -MParse::RecDescent - ../../grammar Literally::Grammar"
3. Attempt to parse something with it.
Numerous errors of the aforementioned form.
No errors (from Parse::RecDescent code, anyway).
I'm not seeing this with simple examples where the grammar is not precompiled.
Please supply example programs demonstrating the problem - thanks.
I seem to have traced the problem to more rigorous requirements for test
programs imposed by the version of Module::Build in FC5. Why that resulted in
these complaints about Parse::RecDescent code remains a mystery to me; but
modifying my test program to make Module::Build happy (i.e., using Test::Simple)
seems to have fixed the problem.