Skip Menu |

This queue is for tickets about the Marpa CPAN distribution.

Report information
The Basics
Id: 67644
Status: resolved
Priority: 0/
Queue: Marpa

People
Owner: jkegl [...] cpan.org
Requestors: RSAVAGE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.202000
Fixed in: (no value)



Subject: Syntax errors under Perl V 5.12.2
Hi Jeffrey Which version of Perl are you using? I'm using 5.12.2. This is for Marpa V 0.202000. I'm using strict and warnings, and as it happens, Moose. ron@zigzag:~/perl.modules/Graph-Marpa$ perl -Ilib scripts/parse.pl Useless use of private variable in void context at /home/ron/perl5/perlbrew/perls/perl- 5.12.2/lib/site_perl/5.12.2/Marpa/Grammar.pm line 299. Variable "$nullable" is not imported at /home/ron/perl5/perlbrew/perls/perl- 5.12.2/lib/site_perl/5.12.2/Marpa/Grammar.pm line 2264. Variable "$nullable" is not imported at /home/ron/perl5/perlbrew/perls/perl- 5.12.2/lib/site_perl/5.12.2/Marpa/Grammar.pm line 2268. Variable "$nullable" is not imported at /home/ron/perl5/perlbrew/perls/perl- 5.12.2/lib/site_perl/5.12.2/Marpa/Grammar.pm line 2269. Variable "$nullable" is not imported at /home/ron/perl5/perlbrew/perls/perl- 5.12.2/lib/site_perl/5.12.2/Marpa/Grammar.pm line 2272. Variable "$nullable" is not imported at /home/ron/perl5/perlbrew/perls/perl- 5.12.2/lib/site_perl/5.12.2/Marpa/Grammar.pm line 2279. syntax error at /home/ron/perl5/perlbrew/perls/perl- 5.12.2/lib/site_perl/5.12.2/Marpa/Grammar.pm line 2250, near "List::Util::min map" syntax error at /home/ron/perl5/perlbrew/perls/perl- 5.12.2/lib/site_perl/5.12.2/Marpa/Grammar.pm line 2255, near ") " Global symbol "$symbol" requires explicit package name at /home/ron/perl5/perlbrew/perls/perl- 5.12.2/lib/site_perl/5.12.2/Marpa/Grammar.pm line 2262. Global symbol "$nullable" requires explicit package name at /home/ron/perl5/perlbrew/perls/perl- 5.12.2/lib/site_perl/5.12.2/Marpa/Grammar.pm line 2264. Global symbol "$symbol" requires explicit package name at /home/ron/perl5/perlbrew/perls/perl- 5.12.2/lib/site_perl/5.12.2/Marpa/Grammar.pm line 2266. Global symbol "$nullable" requires explicit package name at /home/ron/perl5/perlbrew/perls/perl- 5.12.2/lib/site_perl/5.12.2/Marpa/Grammar.pm line 2268. Global symbol "$nullable" requires explicit package name at /home/ron/perl5/perlbrew/perls/perl- 5.12.2/lib/site_perl/5.12.2/Marpa/Grammar.pm line 2269. Global symbol "$symbol" requires explicit package name at /home/ron/perl5/perlbrew/perls/perl- 5.12.2/lib/site_perl/5.12.2/Marpa/Grammar.pm line 2270. Global symbol "$nullable" requires explicit package name at /home/ron/perl5/perlbrew/perls/perl- 5.12.2/lib/site_perl/5.12.2/Marpa/Grammar.pm line 2272. Global symbol "$symbol" requires explicit package name at /home/ron/perl5/perlbrew/perls/perl- 5.12.2/lib/site_perl/5.12.2/Marpa/Grammar.pm line 2279. Global symbol "$nullable" requires explicit package name at /home/ron/perl5/perlbrew/perls/perl- 5.12.2/lib/site_perl/5.12.2/Marpa/Grammar.pm line 2279. Global symbol "$symbol" requires explicit package name at /home/ron/perl5/perlbrew/perls/perl- 5.12.2/lib/site_perl/5.12.2/Marpa/Grammar.pm line 2284. syntax error at /home/ron/perl5/perlbrew/perls/perl- 5.12.2/lib/site_perl/5.12.2/Marpa/Grammar.pm line 2290, near "}" /home/ron/perl5/perlbrew/perls/perl- 5.12.2/lib/site_perl/5.12.2/Marpa/Grammar.pm has too many errors. Cheers!
Interesting. At a glance, all the errors seem to involve List::Util::min or List::Util::max, perhaps not recognizing them as a functions. I develop under Perl 5.10, but Marpa 0.202000 has a clean bill of health under cpantesters, including a number of tests under 5.12.2. Some kind of interaction with Moose, perhaps?
Subject: Re: [rt.cpan.org #67644] Syntax errors under Perl V 5.12.2
Date: Thu, 21 Apr 2011 13:21:37 +1000
To: bug-Marpa [...] rt.cpan.org
From: Ron Savage <ron [...] savage.net.au>
Hi Jeffrey On Wed, 2011-04-20 at 22:17 -0400, Jeffrey Kegler via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=67644 > > > Interesting. > > At a glance, all the errors seem to involve List::Util::min or > List::Util::max, perhaps not recognizing them as a functions. > > I develop under Perl 5.10, but Marpa 0.202000 has a clean bill of health > under cpantesters, including a number of tests under 5.12.2. > > Some kind of interaction with Moose, perhaps?
I just ripped out the Moose stuff, and it made no difference. Still investigating... -- Ron Savage http://savage.net.au/ Ph: 0421 920 622
Subject: Re: [rt.cpan.org #67644] Syntax errors under Perl V 5.12.2
Date: Thu, 21 Apr 2011 13:26:49 +1000
To: bug-Marpa [...] rt.cpan.org
From: Ron Savage <ron [...] savage.net.au>
Hi Jeffrey On Wed, 2011-04-20 at 22:17 -0400, Jeffrey Kegler via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=67644 > > > Interesting. > > At a glance, all the errors seem to involve List::Util::min or > List::Util::max, perhaps not recognizing them as a functions. > > I develop under Perl 5.10, but Marpa 0.202000 has a clean bill of health > under cpantesters, including a number of tests under 5.12.2. > > Some kind of interaction with Moose, perhaps?
I fixed it by adding use List::Util qw/min max/; as line 20 of Marpa::Grammar. Perhaps the tests load List::Util somewhere, and I don't. -- Ron Savage http://savage.net.au/ Ph: 0421 920 622
Are you loading Marpa.pm? Always load Marpa.pm. It takes care of prerequisites. You should not load Marpa::Recognizer and Marpa::Grammar directly.