more useful options | |
PerlMonks |
Re^2: Matching terminals with Parse::RecDescentby fce2 (Sexton) |
on Dec 12, 2006 at 04:01 UTC ( [id://589212]=note: print w/replies, xml ) | Need Help?? |
/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.
In Section
Seekers of Perl Wisdom
|
|