Skip Menu |

This queue is for tickets about the Parse-ABNF CPAN distribution.

Report information
The Basics
Id: 42586
Status: open
Priority: 0/
Queue: Parse-ABNF

People
Owner: BJOERN [...] cpan.org
Requestors: mschwern [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.04
Fixed in: (no value)



Subject: Syntax error inside Parse::RecDescent when parse() is given a list.
So I made a mistake and did this: my $rules = Parse::ABNF->new->parse(<DATA>); handing parse() a list instead of a scalar. This resulted in... Variable "$errortext" is not available at /usr/local/perl/5.10.0/lib/site_perl/5.10.0/Parse/RecDescent.pm line 2906, <DATA> line 32. Variable "$errorprefix" is not available at /usr/local/perl/5.10.0/lib/site_perl/5.10.0/Parse/RecDescent.pm line 2906, <DATA> line 32. Use of uninitialized value $errorprefix in formline at /usr/local/perl/5.10.0/lib/site_perl/5.10.0/Parse/RecDescent.pm line 2850, <DATA> line 32. Use of uninitialized value $errortext in formline at /usr/local/perl/5.10.0/lib/site_perl/5.10.0/Parse/RecDescent.pm line 2850, <DATA> line 32. Use of uninitialized value $errortext in formline at /usr/local/perl/5.10.0/lib/site_perl/5.10.0/Parse/RecDescent.pm line 2852, <DATA> line 32. which is not pleasing to the eye. That's with Parse::RecDescent 1.94.
Subject: Re: [rt.cpan.org #42586] Syntax error inside Parse::RecDescent when parse() is given a list.
Date: Wed, 21 Jan 2009 08:07:34 +0100
To: bug-Parse-ABNF [...] rt.cpan.org
From: Bjoern Hoehrmann <derhoermi [...] gmx.net>
* Michael G Schwern via RT wrote: Show quoted text
>So I made a mistake and did this: > >my $rules = Parse::ABNF->new->parse(<DATA>); > >handing parse() a list instead of a scalar. This resulted in... > >Variable "$errortext" is not available at >/usr/local/perl/5.10.0/lib/site_perl/5.10.0/Parse/RecDescent.pm line >2906, <DATA> line 32.
This is probably http://rt.cpan.org/Public/Bug/Display.html?id=36085 and http://rt.cpan.org/Public/Bug/Display.html?id=32288 if you think you've the "latest" version. The parse method shifts the first argument from @_ and ignores the others, the messages come from P::RD trying to format an error message. -- Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de 25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/