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:
(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.line: FOO BAR FOO: /foo\Z/ BAR: /bar\Z/
In Section
Seekers of Perl Wisdom