Just another Perl shrine | |
PerlMonks |
Re: Where to find the source of this Parse::RecDescent oddness?by hanenkamp (Pilgrim) |
on Oct 17, 2003 at 02:22 UTC ( [id://299924]=note: print w/replies, xml ) | Need Help?? |
UPDATE: I've generated precompiled versions of both grammars from each environment. I'm assuming (have not checked yet) that Precompile and new generate identical grammar objects. (If someone more familiar with the internals knows whether this assumption holds, I'd be glad to know for certain before digging through the code myself.) The code being generated is identical in both cases--as I expected. The place where the differences I can detect appear to come in when the magic $& variable is used to examine the last match. The first disparity in trace output happens in this section of code:
As far as I can tell by reading the code, the value in $& is being lost somewhere between the unless and the _trace. Anyway, still searching...
In Section
Seekers of Perl Wisdom
|
|