![]() |
|
Keep It Simple, Stupid | |
PerlMonks |
Re^2: Parse::RecDescent grammar definitionby citromatik (Curate) |
on Mar 21, 2011 at 17:15 UTC ( #894578=note: print w/replies, xml ) | Need Help?? |
The second problem is that your print statement only belongs to the second rule, i.e. if Pre is matched, nothing is done at all. Wow, there is something I am not getting here. I would expect %item to have what matches in the rule, so if the rule is "Pre | Post", %item would have either the "Pre" or the "Post" matching part. Obviously I am getting all this wrong citromatik
In Section
Seekers of Perl Wisdom
|
|