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

[email protected] (Colin Kuskie) Tue, 9 Sep 2003 10:30:54 -0700
Newsgroups perl.recdescent
Message-ID <[email protected]>
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