RE: Can't get a <error> directive to work

[email protected] ("Hayden, Jon") Tue, 9 Sep 2003 13:41:09 -0400
Newsgroups perl.recdescent
Message-ID <[email protected]>
Oh, I can't believe I didn't see the GOTCHA section.  That is exactly what is happening. Thanks a lot....that fixed it!

> -----Original Message-----
> From: Colin Kuskie [mailto:[email protected]]
> Sent: Tuesday, September 09, 2003 1:31 PM
> To: [email protected]
> Subject: Re: Can't get a <error> directive to work
> 
> 
> On Tue, Sep 09, 2003 at 10:39:22AM -0400, Hayden, Jon wrote:
> > 
> > This  is exactly what I want, but I don't get this error if the bad
> > line is in the middle of the $text.  What am I doing wrong?
> 
> Try setting $RD_TRACE=1 in the script  and redirecting STDOUT and
> STDERR of the script's output to a file and read through it several
> times.  It's verbose, and will explain what P::RD is doing and
> why your grammar behaves as it does.
> 
> For a hint, read the GOTCHA section of the P::RD manpage.
> 
> Good luck,
> Colin Kuskie
>