Keep It Simple, Stupid | |
PerlMonks |
Parse::RecDescent grammar definitionby citromatik (Curate) |
on Mar 21, 2011 at 11:17 UTC ( [id://894476]=perlquestion: print w/replies, xml ) | Need Help?? |
citromatik has asked for the wisdom of the Perl Monks concerning the following question: Hi all I am trying to write a simple grammar just to learn how to use Parse::RecDescent. Why this doesn't work "as expected"?:
I would expect both strings matching and printing "-a" or "a-", but I get:
i.e. Both are valid patterns, but only the first one triggers the action I would expect getting this:
I am not getting something obvious here... Any help would be appreciated citromatik
Back to
Seekers of Perl Wisdom
|
|