Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re^3: Error ... at (eval 75) line 7974.

by clayne (Initiate)
on Feb 12, 2011 at 23:39 UTC ( #887807=note: print w/replies, xml ) Need Help??

in reply to Re^2: Error ... at (eval 75) line 7974.
in thread Error ... at (eval 75) line 7974.

For others who may have run into this and subsequently destroyed their brain like the rest of us, I believe the exact change in RecDescent that is causing issues is this:

(from the Changes file)

1.90 Tue Mar 25 01:17:38 2003 - BACKWARDS INCOMPATIBLE CHANGE: The key of an %item entry for a repeated subrule now includes the repetition specifier. For example, in: sentence: subject verb word(s) the various matched items will be stored in $item{'subject'} +, $item{'verb'}, and $item{'word(s)'} (i.e. *not* in $item{'wo +rd'}, as it would have been in previous versions of the module). (thanks Anthony)

In my case, I had something like this:

Item(s) EOF { $return = [ @{$item{Item}} ]; }
and it *should be*:
Item(s) EOF { $return = [ @{$item{qq(Item(s))}} ]; }

Check other sub-rules for similar kind of behavior and hash referencing.

It's also actually already documented within the grammer included by Inline::CPP:

Unfortunately to figure it out myself, I had to take the long road on an entirely different piece of older code. Just the type of thing to make one tear their hair out unless they know the exact place to look.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://887807]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2018-06-23 01:40 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (125 votes). Check out past polls.