http://qs321.pair.com?node_id=589212


in reply to Re: Matching terminals with Parse::RecDescent
in thread Matching terminals with Parse::RecDescent

/foo$/ works for the example script. "foo" /\Z/ didn't match anything (though /foo\Z/ did). All fall down if I test with this grammar:
line: FOO BAR FOO: /foo\Z/ BAR: /bar\Z/
(and use $p->line instead of $p->foo). I probably should have been more specific, but I'm looking for a more generalised solution to this, or at least some understanding of where my expectations are wrong.