Re: Very odd parsing problem

[email protected] (Aaron Dalton) Thu, 18 Dec 2003 01:06:05 -0700 (MST)
Newsgroups perl.recdescent
Message-ID <[email protected]>
On Wed, 17 Dec 2003, Ron D. Smith wrote:

> On Wednesday, Dec 17, 2003 Aaron Dalton said:
> > I have created a grammar for processing basic rules for a pbem I am
> > writing.  I have also written an object for then processing the resulting
> > parse tree.  What is happening is this: If I simply parse the input and
> > dump the tree, everything parses fine.  The second I even "use" my
> > processing object module (which happens to be called "Process") the parse
> > fails.
>
> You should remember the semantics of "use".  When you include a use statement
> in your code, the code is compiled and executed *before* the main code is
> even finished being compiled.  (In other words the use statement has side
> effects at compile, not just run time.)
>
> My suggestion is to keep cutting stuff off of your Process module until the
> problem goes away.  When the problem goes away, whatever you cut away is
> causing the problem, somehow.  My bet is that once you see the actual
> offending code, it will become "clear" what is wrong.
>
>
>

Again, thank you all for your time and patience.  I am usually very good
at "reading the freaking manual" but I missed some fine print.  The
problem ended up being my use of the Perl module RFC::RFC822::Address
which states at the bottom of its page that it screws up all other RD
parsers by changing $skip.  I am sorry to have bothered you all and thank
you again for your help.

Cheers!

-- 
Aaron Dalton
[email protected]
http://aaron.finch.st