"be consistent" | |
PerlMonks |
Re: using two Parse::RecDescent parsers togetherby ikegami (Patriarch) |
on Aug 12, 2005 at 14:26 UTC ( [id://483289]=note: print w/replies, xml ) | Need Help?? |
From the docs, $text: The remaining (unparsed) text. Changes to $text do not propagate out of unsuccessful productions, but do survive successful productions. So we need to remove from $text what the query parser matches. Also from the docs, If, however, the text to be matched is passed by reference [...] then any text which was consumed during the match will be removed from the start of [the referenced string]. So it's quite simple:
Tested.
In Section
Seekers of Perl Wisdom
|
|