Skip Menu |

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

Report information
The Basics
Id: 105672
Status: resolved
Priority: 0/
Queue: Parse-Yapp

People
Owner: Nobody in particular
Requestors: abc.mikey [...] gmail.com
Cc:
AdminCc:

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



Subject: strict refs error
Date: Sun, 5 Jul 2015 19:56:03 +0100
To: bug-Parse-Yapp [...] rt.cpan.org
From: mikey <abc.mikey [...] gmail.com>
Hi, I'm trying out Parse::Yapp with a tutorial from here: http://perl.find-info.ru/perl/025/advperl2-chp-2-sect-2.html And I get the following error with the latest from cpan: Can't use string ("") as an ARRAY ref while "strict refs" in use at /home/michael/perl5/lib/perl5/Parse/Yapp/Grammar.pm line 193. A naive fix, based on no more investigation than the error message, that appears to work is: --- /home/michael/perl5/lib/perl5/Parse/Yapp/Grammar.pm 2015-07-05 19:51:45.096661701 +0100 +++ /home/michael/perl5/lib/perl5/Parse/Yapp/Grammar.pm.new 2015-07-05 19:51:31.010770363 +0100 @@ -190,7 +190,7 @@ my($linenums)=$self->Option('linenumbers'); my($text); - $$self{GRAMMAR}{TAIL}[0] + (ref $$self{GRAMMAR}{TAIL} eq 'ARRAY' and $$self{GRAMMAR}{TAIL}[0]) or return ''; defined($inputfile)
Subject: Re: [rt.cpan.org #105672] AutoReply: strict refs error
Date: Sun, 5 Jul 2015 20:18:33 +0100
To: bug-Parse-Yapp [...] rt.cpan.org
From: mikey <abc.mikey [...] gmail.com>
Never mind. The error was due to my failure to correctly write the yapp file in the example. I had more success with your Calc.yp example from CPAN. On 5 July 2015 at 19:56, Bugs in Parse-Yapp via RT < bug-Parse-Yapp@rt.cpan.org> wrote: Show quoted text
> > Greetings, > > This message has been automatically generated in response to the > creation of a trouble ticket regarding: > "strict refs error", > a summary of which appears below. > > There is no need to reply to this message right now. Your ticket has been > assigned an ID of [rt.cpan.org #105672]. Your ticket is accessible > on the web at: > > https://rt.cpan.org/Ticket/Display.html?id=105672 > > Please include the string: > > [rt.cpan.org #105672] > > in the subject line of all future correspondence about this issue. To do > so, > you may reply to this message. > > Thank you, > bug-Parse-Yapp@rt.cpan.org > > ------------------------------------------------------------------------- > Hi, > > I'm trying out Parse::Yapp with a tutorial from here: > http://perl.find-info.ru/perl/025/advperl2-chp-2-sect-2.html > > And I get the following error with the latest from cpan: > > Can't use string ("") as an ARRAY ref while "strict refs" in use at > /home/michael/perl5/lib/perl5/Parse/Yapp/Grammar.pm line 193. > > A naive fix, based on no more investigation than the error message, that > appears to work is: > > --- /home/michael/perl5/lib/perl5/Parse/Yapp/Grammar.pm 2015-07-05 > 19:51:45.096661701 +0100 > +++ /home/michael/perl5/lib/perl5/Parse/Yapp/Grammar.pm.new 2015-07-05 > 19:51:31.010770363 +0100 > @@ -190,7 +190,7 @@ > my($linenums)=$self->Option('linenumbers'); > my($text); > > - $$self{GRAMMAR}{TAIL}[0] > + (ref $$self{GRAMMAR}{TAIL} eq 'ARRAY' and > $$self{GRAMMAR}{TAIL}[0]) > or return ''; > > defined($inputfile) >
Not an actual error, retracted by original bug report author.