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.