in reply to Matching terminals with Parse::RecDescent
You need to force a end of line (or end of file) match. For the sample given, changing your grammar to:
FOO: /foo$/
does the trick. In the context of a file being parsed you are more likely to want
FOO: "foo" /\Z/
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Matching terminals with Parse::RecDescent
by fce2 (Sexton) on Dec 12, 2006 at 04:01 UTC | |
by ikegami (Patriarch) on Dec 12, 2006 at 06:36 UTC | |
by GrandFather (Saint) on Dec 12, 2006 at 06:25 UTC |